Browse files

Fixed typo: "is modified" and "is not modified" were switched around

  • Loading branch information...
1 parent d5417f9 commit 43327c31879419fa21bbaf1808086ca64c5162e1 Tyler Rick committed Jul 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/rspec/matchers/change_spec.rb
View
6 spec/rspec/matchers/change_spec.rb
@@ -145,7 +145,7 @@ def ==(other)
expect { }.to_not change(@instance, :some_value)
end
- it "fails when actual is not modified by the block" do
+ it "fails when actual is modified by the block" do
expect do
expect {@instance.some_value = 6}.to_not change(@instance, :some_value)
end.to fail_with("some_value should not have changed, but did change from 5 to 6")
@@ -185,11 +185,11 @@ def ==(other)
@instance.some_value = 5
end
- it "passes when actual is modified by the block" do
+ it "passes when actual is not modified by the block" do
expect {}.to_not change{ @instance.some_value }
end
- it "fails when actual is not modified by the block" do
+ it "fails when actual is modified by the block" do
expect do
expect {@instance.some_value = 6}.to_not change { @instance.some_value }
end.to fail_with("result should not have changed, but did change from 5 to 6")

0 comments on commit 43327c3

Please sign in to comment.