Commit Graph

8 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 c4927b73f2 Fix render_with_layout_matcher on Rails 4.
Rails 4 moved the layouts ivar from `@layouts` to `@_layouts`.

This change introduces what I have (for now) called the 'RailsShim'. The
idea is that this single class will house the rail version workarounds,
which can then be reused through the code. This paid off here because
both the spec and the implementation need access to the layouts ivar.
2013-08-16 15:32:08 -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
Ian Lesperance e739a541ed Removed old Rails 2.x layout lookup.
Fixes render_with_layout matcher when rendering with only a partial.
(Rendering with :layout => false would also have had this problem on
Edge Rails.)
2012-07-20 10:47:04 -04:00
Gabe Berke-Williams 73b5a4647e Cleanup. 2012-05-07 11:08:59 -04:00
Gabe Berke-Williams 7b3d6d0f86 Continue cleaning up matchers. 2012-03-30 11:50:59 -04:00
Joe Ferris 56b0a0439e Move into the Matchers namespace 2010-12-15 17:34:19 -05:00