Skip to content

Commit 6d7b36b

Browse files
committed
chore: add rspec for plugin tests
1 parent 0d416de commit 6d7b36b

4 files changed

Lines changed: 37 additions & 1 deletion

File tree

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--require spec_helper
2+
--format documentation
3+
--color

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
3232
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
3333

3434
gem "webrick", "~> 1.8"
35+
36+
group :development, :test do
37+
gem "rspec", "~> 3.13"
38+
end

Gemfile.lock

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ GEM
55
public_suffix (>= 2.0.2, < 6.0)
66
colorator (1.1.0)
77
concurrent-ruby (1.2.3)
8+
diff-lcs (1.6.2)
89
em-websocket (0.5.3)
910
eventmachine (>= 0.12.9)
1011
http_parser.rb (~> 0)
1112
eventmachine (1.2.7)
12-
ffi (1.16.3)
13+
ffi (1.17.4-arm64-darwin)
14+
ffi (1.17.4-x86_64-darwin)
15+
ffi (1.17.4-x86_64-linux-gnu)
1316
forwardable-extended (2.6.0)
1417
google-protobuf (4.26.1-arm64-darwin)
1518
rake (>= 13)
@@ -68,6 +71,19 @@ GEM
6871
ffi (~> 1.0)
6972
rexml (3.2.6)
7073
rouge (4.2.1)
74+
rspec (3.13.2)
75+
rspec-core (~> 3.13.0)
76+
rspec-expectations (~> 3.13.0)
77+
rspec-mocks (~> 3.13.0)
78+
rspec-core (3.13.6)
79+
rspec-support (~> 3.13.0)
80+
rspec-expectations (3.13.5)
81+
diff-lcs (>= 1.2.0, < 2.0)
82+
rspec-support (~> 3.13.0)
83+
rspec-mocks (3.13.8)
84+
diff-lcs (>= 1.2.0, < 2.0)
85+
rspec-support (~> 3.13.0)
86+
rspec-support (3.13.7)
7187
safe_yaml (1.0.5)
7288
sass-embedded (1.75.0-arm64-darwin)
7389
google-protobuf (>= 3.25, < 5.0)
@@ -83,6 +99,7 @@ GEM
8399
PLATFORMS
84100
arm64-darwin-22
85101
arm64-darwin-23
102+
arm64-darwin-24
86103
x86_64-darwin-21
87104
x86_64-linux
88105

@@ -94,6 +111,7 @@ DEPENDENCIES
94111
jekyll-optional-front-matter (~> 0.3)
95112
jekyll-relative-links (~> 0.6)
96113
jekyll-sitemap (~> 1.4)
114+
rspec (~> 3.13)
97115
tzinfo (>= 1, < 3)
98116
tzinfo-data
99117
wdm (~> 0.1.1)

spec/spec_helper.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require "jekyll"
2+
3+
RSpec.configure do |config|
4+
config.expect_with :rspec do |c|
5+
c.syntax = :expect
6+
end
7+
8+
config.disable_monkey_patching!
9+
config.order = :random
10+
Kernel.srand config.seed
11+
end

0 commit comments

Comments
 (0)