System notice: In light of the Debian OpenSSL security issue we've regenerated the server keys. See this thread for instructions and the new key fingerprints.

Commit deaa80dc49d57189ccf3ceb2bdeb30ed5b564e34

fixed example for include_text matcher

Commit diff

rspec_on_rails/spec/rails/matchers/include_text_spec.rb

 
4949
5050 it "should fail when a template is rendered" do
5151 post 'some_action'
52 failure_message = case mode
53 when 'isolation'
54 /expected to find \"this is the text for this action\" in \"render_spec\/some_action\"/
55 when 'integration'
56 /expected to find \"this is the text for this action\" in \"\"/
57 end
5258 lambda {
5359 response.should include_text("this is the text for this action")
54 }.should fail_with(/expected to find \"this is the text for this action\" in \"render_spec\/some_action\"/)
60 }.should fail_with(failure_message)
5561 end
5662
5763 it "should pass using should_not with incorrect text" do
toggle raw diff