Skip to primary content

42

Web notebook about thoughts and discoveries in DevOps, SRE, Software Engineering….

42

Main menu

  • Home
  • About
  • contact
  • Links

Post navigation

← Previous Next →

Shoulda – from should_have to should have

Posted on 26 October 2010 by kosmas
Email this to someone
email
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Problem
Your old tests with shoulda are written using the old style should_have, should_belong, etc, which are now deprecated.

Solution
The new style of writing shoulda unit tests is should have, should belong_to etc. All the new macros can be found here

This entry was posted in ruby on rails, shoulda and tagged should have, shoulda, should_have by kosmas. Bookmark the permalink.
Proudly powered by WordPress