Skip to content

Commit cb2dda8

Browse files
committed
Whitespace only update [ci skip]
1 parent 85fe74b commit cb2dda8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/rspec/rails/matchers/have_rendered_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,16 @@ def assert_template(*); raise "oops"; end
9191

9292
context "when fails with a redirect" do
9393
let(:response) { ActionController::TestResponse.new(302) }
94+
9495
def assert_template(*)
9596
message = "expecting <'template_name'> but rendering with <[]>"
9697
raise ActiveSupport::TestCase::Assertion.new(message)
9798
end
99+
98100
def normalize_argument_to_redirection(response_redirect_location)
99101
"http://test.host/widgets/1"
100102
end
103+
101104
it "gives informative error message" do
102105
response = ActionController::TestResponse.new(302)
103106
response.location = "http://test.host/widgets/1"

0 commit comments

Comments
 (0)