[rspec-devel] rake aborted! when setting expectations in before

David Chelimsky dchelimsky at gmail.com
Mon Oct 8 23:21:58 EDT 2007


On 10/8/07, Mark Van Holstyn <mvanholstyn at gmail.com> wrote:
> describe UsersController, "#new" do
>   before(:each) do
>     User.should_receive(:new)
>   end
>
>   it "creates a new user"
> end
>
> Running that via "rake spec" spec causes a "rake aborted" in rails. The
> specs pass (as expected) but for some reason the rake task aborted.
>
> Any ideas?

Need a bit more info:

versions? rspec? rails? os? run "rake spec --trace" and copy the output pls

>
> Mark
>
> --
> Mark Van Holstyn, Partner / Software Developer
> mvanholstyn at mutuallyhuman.com, (616) 706-6842
> Mutually Human Software, http://mutuallyhuman.com
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the rspec-devel mailing list