Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace response.redirect_url_match? w/ response.location =~ regexp

  • Loading branch information...
commit 0a0322a8ea3bc9bc2e7b4c2a839a576db3ad7898 1 parent 32719d8
@jomz jomz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/matchers/login_system_matcher.rb
View
4 spec/matchers/login_system_matcher.rb
@@ -62,8 +62,8 @@ def denied?(user)
@example.request.session['user_id'] = user.id
@proc.call
response = @example.response
- @urls[user] = response.redirect_url if @url && !response.redirect_url_match?(@url)
- @result[user] = response.redirect? && (@url.nil? || response.redirect_url_match?(@url))
+ @urls[user] = response.redirect_url if @url && !response.location =~ Regexp.new(@url)
+ @result[user] = response.redirect? && (@url.nil? || response.location =~ Regexp.new(@url) )
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.