Permalink
Browse files

Spec wording cleanup

  • Loading branch information...
1 parent a184e7d commit 053d453dace9aa56c327672b184f89eb7d4c6a26 @laserlemon laserlemon committed Oct 3, 2012
View
4 spec/json_spec/matchers/be_json_eql_spec.rb
@@ -86,13 +86,13 @@
%({"id":1,"json":"spec"}).should_not be_json_eql(%({"id":2,"json":"different"})).including(:id, :json)
end
- it "provide a description message" do
+ it "provides a description message" do
matcher = be_json_eql(%({"id":2,"json":"spec"}))
matcher.matches?(%({"id":1,"json":"spec"}))
matcher.description.should == "equal JSON"
end
- it "provide a description message with path" do
+ it "provides a description message with path" do
matcher = be_json_eql(%({"id":1,"json":["spec"]})).at_path("json/0")
matcher.matches?(%({"id":1,"json":["spec"]}))
matcher.description.should == %(equal JSON at path "json/0")
View
2 spec/json_spec/matchers/have_json_path_spec.rb
@@ -21,7 +21,7 @@
%({"one":[1,2,{"three":4}]}).should have_json_path("one/2/three")
end
- it "provide a description message" do
+ it "provides a description message" do
matcher = have_json_path("json")
matcher.matches?(%({"id":1,"json":"spec"}))
matcher.description.should == %(have JSON path "json")
View
4 spec/json_spec/matchers/have_json_size_spec.rb
@@ -33,13 +33,13 @@
matcher.failure_message_for_should_not.should == "Expected JSON value size to not be 3, got 3"
end
- it "provide a description message" do
+ it "provides a description message" do
matcher = have_json_size(1)
matcher.matches?(%({"id":1,"json":["spec"]}))
matcher.description.should == %(have JSON size "1")
end
- it "provide a description message with path" do
+ it "provides a description message with path" do
matcher = have_json_size(1).at_path("json")
matcher.matches?(%({"id":1,"json":["spec"]}))
matcher.description.should == %(have JSON size "1" at path "json")
View
4 spec/json_spec/matchers/have_json_type_spec.rb
@@ -58,13 +58,13 @@
matcher.failure_message_for_should_not.should == "Expected JSON value type to not be Numeric, got Fixnum"
end
- it "provide a description message" do
+ it "provides a description message" do
matcher = have_json_type(String)
matcher.matches?(%({"id":1,"json":"spec"}))
matcher.description.should == %(have JSON type "String")
end
- it "provide a description message with path" do
+ it "provides a description message with path" do
matcher = have_json_type(String).at_path("json")
matcher.matches?(%({"id":1,"json":"spec"}))
matcher.description.should == %(have JSON type "String" at path "json")
View
6 spec/json_spec/matchers/include_json_spec.rb
@@ -23,7 +23,7 @@
json.should include_json(%({"two":2}))
end
- it "matches include hash values" do
+ it "matches included hash values" do
json = %({"string":"one","integer":1,"float":1.0,"true":true,"false":false,"null":null})
json.should include_json(%("one"))
json.should include_json(%(1))
@@ -53,13 +53,13 @@
%([{"id":1,"two":3}]).should include_json(%({"two":3}))
end
- it "provide a description message" do
+ it "provides a description message" do
matcher = include_json(%({"json":"spec"}))
matcher.matches?(%({"id":1,"json":"spec"}))
matcher.description.should == "include JSON"
end
- it "provide a description message with path" do
+ it "provides a description message with path" do
matcher = include_json(%("spec")).at_path("json/0")
matcher.matches?(%({"id":1,"json":["spec"]}))
matcher.description.should == %(include JSON at path "json/0")

0 comments on commit 053d453

Please sign in to comment.