Skip to content

Commit 053d453

Browse files
committed
Spec wording cleanup
1 parent a184e7d commit 053d453

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

spec/json_spec/matchers/be_json_eql_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@
8686
%({"id":1,"json":"spec"}).should_not be_json_eql(%({"id":2,"json":"different"})).including(:id, :json)
8787
end
8888

89-
it "provide a description message" do
89+
it "provides a description message" do
9090
matcher = be_json_eql(%({"id":2,"json":"spec"}))
9191
matcher.matches?(%({"id":1,"json":"spec"}))
9292
matcher.description.should == "equal JSON"
9393
end
9494

95-
it "provide a description message with path" do
95+
it "provides a description message with path" do
9696
matcher = be_json_eql(%({"id":1,"json":["spec"]})).at_path("json/0")
9797
matcher.matches?(%({"id":1,"json":["spec"]}))
9898
matcher.description.should == %(equal JSON at path "json/0")

spec/json_spec/matchers/have_json_path_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
%({"one":[1,2,{"three":4}]}).should have_json_path("one/2/three")
2222
end
2323

24-
it "provide a description message" do
24+
it "provides a description message" do
2525
matcher = have_json_path("json")
2626
matcher.matches?(%({"id":1,"json":"spec"}))
2727
matcher.description.should == %(have JSON path "json")

spec/json_spec/matchers/have_json_size_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
matcher.failure_message_for_should_not.should == "Expected JSON value size to not be 3, got 3"
3434
end
3535

36-
it "provide a description message" do
36+
it "provides a description message" do
3737
matcher = have_json_size(1)
3838
matcher.matches?(%({"id":1,"json":["spec"]}))
3939
matcher.description.should == %(have JSON size "1")
4040
end
4141

42-
it "provide a description message with path" do
42+
it "provides a description message with path" do
4343
matcher = have_json_size(1).at_path("json")
4444
matcher.matches?(%({"id":1,"json":["spec"]}))
4545
matcher.description.should == %(have JSON size "1" at path "json")

spec/json_spec/matchers/have_json_type_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@
5858
matcher.failure_message_for_should_not.should == "Expected JSON value type to not be Numeric, got Fixnum"
5959
end
6060

61-
it "provide a description message" do
61+
it "provides a description message" do
6262
matcher = have_json_type(String)
6363
matcher.matches?(%({"id":1,"json":"spec"}))
6464
matcher.description.should == %(have JSON type "String")
6565
end
6666

67-
it "provide a description message with path" do
67+
it "provides a description message with path" do
6868
matcher = have_json_type(String).at_path("json")
6969
matcher.matches?(%({"id":1,"json":"spec"}))
7070
matcher.description.should == %(have JSON type "String" at path "json")

spec/json_spec/matchers/include_json_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
json.should include_json(%({"two":2}))
2424
end
2525

26-
it "matches include hash values" do
26+
it "matches included hash values" do
2727
json = %({"string":"one","integer":1,"float":1.0,"true":true,"false":false,"null":null})
2828
json.should include_json(%("one"))
2929
json.should include_json(%(1))
@@ -53,13 +53,13 @@
5353
%([{"id":1,"two":3}]).should include_json(%({"two":3}))
5454
end
5555

56-
it "provide a description message" do
56+
it "provides a description message" do
5757
matcher = include_json(%({"json":"spec"}))
5858
matcher.matches?(%({"id":1,"json":"spec"}))
5959
matcher.description.should == "include JSON"
6060
end
6161

62-
it "provide a description message with path" do
62+
it "provides a description message with path" do
6363
matcher = include_json(%("spec")).at_path("json/0")
6464
matcher.matches?(%({"id":1,"json":["spec"]}))
6565
matcher.description.should == %(include JSON at path "json/0")

0 commit comments

Comments
 (0)