Skip to content

Commit

Permalink
All tests running successfully!
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosbrando committed Oct 29, 2009
1 parent 0ed320c commit e80ffb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions remarkable_rails/spec/action_controller/macro_stubs_spec.rb
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e80ffb5

Please sign in to comment.