Permalink
Browse files

All tests running successfully!

  • Loading branch information...
1 parent 0ed320c commit e80ffb556c934f9806623898ad59684f1e8ee53d @carlosbrando committed Oct 29, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 remarkable_rails/spec/action_controller/macro_stubs_spec.rb
@@ -87,7 +87,7 @@ def current_id; '37'; end
lambda {
run_action!(true)
- }.should raise_error(Spec::Mocks::MockExpectationError, /expected :find with \("42"\) but received it with \("37"\)/)
+ }.should raise_error(Spec::Mocks::MockExpectationError, /received :find with unexpected arguments\n expected: \("42"\)\n got: \("37"\)/)
end
it 'should fail if expectations are received out of order' do
@@ -102,7 +102,7 @@ def current_id; '37'; end
lambda {
Task.find([1,2,3])
- }.should raise_error(Spec::Mocks::MockExpectationError, /expected :find with \(1\, 2\, 3\) but received it with \(\[1\, 2\, 3\]\)/)
+ }.should raise_error(Spec::Mocks::MockExpectationError, /received :find with unexpected arguments\n expected: \(1\, 2\, 3\)\n got: \(\[1\, 2\, 3\]\)/)
lambda {
Task.find(1, 2, 3)
@@ -131,8 +131,8 @@ def current_id; '37'; end
lambda {
Task.find(1)
- }.should raise_error(Spec::Mocks::MockExpectationError, /expected :find with \("37"\, 1\) but received it with \(1\)/)
-
+ }.should raise_error(Spec::Mocks::MockExpectationError, /received :find with unexpected arguments\n expected: \("37", 1\)\n got: \(1\)/)
+
lambda {
Task.find("37", 1)
}.should_not raise_error

0 comments on commit e80ffb5

Please sign in to comment.