We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85fe74b commit cb2dda8Copy full SHA for cb2dda8
spec/rspec/rails/matchers/have_rendered_spec.rb
@@ -91,13 +91,16 @@ def assert_template(*); raise "oops"; end
91
92
context "when fails with a redirect" do
93
let(:response) { ActionController::TestResponse.new(302) }
94
+
95
def assert_template(*)
96
message = "expecting <'template_name'> but rendering with <[]>"
97
raise ActiveSupport::TestCase::Assertion.new(message)
98
end
99
100
def normalize_argument_to_redirection(response_redirect_location)
101
"http://test.host/widgets/1"
102
103
104
it "gives informative error message" do
105
response = ActionController::TestResponse.new(302)
106
response.location = "http://test.host/widgets/1"
0 commit comments