Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

All tests running successfully!

  • Loading branch information...
commit e80ffb556c934f9806623898ad59684f1e8ee53d 1 parent 0ed320c
@carlosbrando authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 remarkable_rails/spec/action_controller/macro_stubs_spec.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.