From ca96e339680efda9a3758599bdd1785119460364 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Wed, 11 Jan 2017 08:11:58 +0100 Subject: `be_denied_for` matcher should also expect a 403 --- spec/support/matchers/access_matchers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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| -- cgit v1.2.1