Displaying 1 result from an estimated 1 matches for "migration_spec".
2008 Jul 25
21
Problems with mock assigned to a constant
...my example illustrated my problem, but obviously I was passing the
wrong arguments to the mock. I revised my example to more clearly state my
problem:
http://gist.github.com/2372
This is a snip of a some code from a library I''m writing. When I run this
spec I get the following:
# spec migration_spec.rb
.F
1)
Spec::Mocks::MockExpectationError in ''Migration should find the records''
Mock ''MyModel Class'' received unexpected message :count with (no args)
./migration.rb:14:in `run''
./migration_spec.rb:19:
Finished in 0.009164 seconds
2 examples, 1 fail...