Commit Graph

15 Commits

Author SHA1 Message Date
Christopher Chow 1878e89a13 Update deprecated matcher protocol for RSpec 3.
The methods failure_message_for_should and failure_message_for_should_not
have been updated to failure_message and failure_message_negated respectively.
Alias to the old methods to remain backwards compatibility with RSpec 2.
2013-12-24 22:34:26 +11:00
Derek Prior + Elliot Winkler 9a333d12b4 Fix set_the_flash_matcher for Rails 4
The "flashes" instance variable that lives within FlashHash has changed
in Rails 4. I have added a shim to get the proper name.

Additionally, the set_the_flash matcher will dup the flash hash for the
controller on which it operates. As #dup does a shallow copy we need to
make sure to also copy the instance variables within the flash hash when
we do this. The Rails 4 version of FlashHash has an extra @discard
variable unlike the Rails 3 version so we make sure to copy that.
2013-08-16 16:00:10 -06:00
Brian Shaver 4f8684c6db Rename failure_message and negative_failure_message
* fixes #108 : RSpec 2.10 compatibility
* remove unnecessary attr_readr
2013-03-08 14:49:12 -05:00
Gabe Berke-Williams af8f9a7bff Use current thoughtbot style in specs 2012-12-26 22:45:54 -05:00
Ryan McGeary ddcd0f5e7d Fixed the pretty_key output of the set_the_flash matcher 2012-10-02 00:06:27 -04:00
grosser 27841b7b4c Protect against unmatchable classes in flash matcher 2012-09-14 17:04:07 -04:00
Gabe Berke-Williams 5542991b6e Extract method. 2012-05-11 09:49:35 -04:00
Gabe Berke-Williams 76305222fe Cleaner flash matcher 2012-05-07 11:19:19 -04:00
Gabe Berke-Williams 96df0b12ca Continue cleaning up matchers. 2012-03-30 10:51:00 -04:00
Gabe Berke-Williams fd4aa53382 Fix style. 2012-03-09 12:17:59 -05:00
Fujimura Daisuke 0e0339e943 Add flash type to expectation and description 2012-03-09 12:07:43 -05:00
Fujimura Daisuke ef866e2674 Add SetTheFlashMatcher#[] to specify flash type 2012-03-09 12:07:43 -05:00
Prem Sichanugrist 3d9439030b Update set_the_flash_matcher to also duplicate the used set to fix a bug in Rubinius
Tests now also passed on Rubinius 2.0
2011-09-19 01:05:07 +07:00
Prem Sichanugrist 71c47f7cef Fix all the tests. We should be good to go for 3.1.0.rc1 2011-05-25 15:36:13 -04:00
Joe Ferris 56b0a0439e Move into the Matchers namespace 2010-12-15 17:34:19 -05:00