lib/spec/matchers/raise_error.rb in rspec-0.9.4 vs lib/spec/matchers/raise_error.rb in rspec-1.0.0
- old
+ new
@@ -22,10 +22,10 @@
@raised_expected_error = true
else
@raised_other = true
end
else
- if @actual_error.message == @expected_message
+ if @expected_message == @actual_error.message
@raised_expected_error = true
else
@raised_other = true
end
end