Episode 4 - Getting specs to pass, part 2


Click on image above for a preview

Released: Aug 21, 2010, Running time: 24 min

In this episode:

We pick up where we left off in episode 3 and finish getting our specs to pass after upgrading to Rails 3 and RSpec 2.

Tags: rspec2, rails3, upgrade

Add to cart$5.00
  • Share

Continuing on the path to get all specs to pass, started in the previous episode:

  • Fixing view specs: changing assigns[]= to assign(), marking examples that use have_tag as pending, changing how view rendering is invoked.
  • remarkable_rails matchers have changed mirror changes in ActiveRecord: should_have_named_scope is now should_have_scope.
  • email_spec has changed some of its API.
  • Stubbing paginate on the ActiveRecord association proxy does not work anymore. We must explicitly create a mock, substitute it for the association and stub paginate on it.



  • Vlcsnap-2010-08-22-20h34m31s83
  • Vlcsnap-2010-08-22-20h33m49s173
  • Vlcsnap-2010-08-22-20h41m42s32
  • Vlcsnap-2010-08-22-20h44m48s108

No comments yet

Commenting is disabled.