summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-01-11 08:11:58 +0100
committerToon Claes <toon@gitlab.com>2017-01-11 08:11:58 +0100
commitca96e339680efda9a3758599bdd1785119460364 (patch)
treecf545eadfa226b768f161eea0ff4ef726e740bcc
parent6dacc37b2e78b7853bf67b6de9ebd318ef553722 (diff)
downloadgitlab-ce-tc-access-denied-status-code-403.tar.gz
`be_denied_for` matcher should also expect a 403tc-access-denied-status-code-403
-rw-r--r--spec/support/matchers/access_matchers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/matchers/access_matchers.rb b/spec/support/matchers/access_matchers.rb
index ceddb656596..c1a8a264fba 100644
--- a/spec/support/matchers/access_matchers.rb
+++ b/spec/support/matchers/access_matchers.rb
@@ -66,7 +66,7 @@ module AccessMatchers
emulate_user(user, @membership)
visit(url)
- status_code == 404 || current_path == new_user_session_path
+ status_code == 403 || current_path == new_user_session_path
end
chain :of do |membership|