-
-
Save erithmetic/1349199 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started | |
E | |
Finished in 1.012821 seconds. | |
1) Error: | |
test_0001_underscored_version_of_your_it_statement(CamelizedDescription): | |
MockExpectationError: expected create, {:retval=>nil, :args=>["foo", "bar", {}]} | |
test/my_test.rb:25:in `block (2 levels) in <main>' | |
1 tests, 0 assertions, 0 failures, 1 errors, 0 skips |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'does stuff' do | |
mock = MiniTest::Mock.new | |
mock.expect(:create, nil, ['foo', 'bar', {}]) | |
@subject.thing = mock | |
@subject.work | |
mock.verify | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All the while I could use rspec: