03 Apr '13, 5pm

Shoulda Matchers has hit version 2.0! This release is backwards incompatible and mostly removes deprecated matchers.

Shoulda Matchers has hit version 2.0! This release is backwards incompatible and mostly removes deprecated matchers.

April 3, 2013 drapergeek shoulda matchers shoulda open source Shoulda Matchers 2.0 Shoulda Matchers has been around for a long time. Unfortunately, it’s starting to suffer from feature bloat so we’re narrowing its focus to keep releases fast and the maintenance burden low. Removing Deprecated Matchers The following matchers were deprecated in 1.5 and will be removed in 2.0 . If you’re currently using these methods you should consider testing the code in another way. assign_to The assign_to matcher allows you to ensure you have set an instance variable properly. We do not use this because we typically cover those types of assertions implicitly through an integration test. An integration test may be slower than a unit test, but it provides more thorough coverage. validate_format_of The validate_format_of matcher allows you to perform the same operation as the allow_value mat...

Full article: http://robots.thoughtbot.com/post/47031676783/shoulda-mat...

Tweets

@johnandrews

johnon.com 08 Apr '13, 3am

Eric Enge recently published an essay entitled “Penguin 2.0 Forewarning: The Google Perspective on Links”. I know about it...