[rspec-users] Shoulda and explicit subject

ericindc ericmilford at gmail.com
Wed Jun 30 13:00:22 EDT 2010

I am trying to use Shoulda matchers with the latest beta version of
RSpec for Rails 3.  I've managed to track down the cause of my errors
to needing to explicitly set the subject, but the Shoulda examples
make no mention of requiring this step.  I've pastied the errors I'm
receiving and adding subject { controller } seems to resolve them.  Is
this behavior expected?



More information about the rspec-users mailing list