summaryrefslogtreecommitdiff
path: root/spec/support/matchers/access_matchers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers/access_matchers.rb')
-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 acf5fb0944f..1b460fbdbf7 100644
--- a/spec/support/matchers/access_matchers.rb
+++ b/spec/support/matchers/access_matchers.rb
@@ -52,7 +52,7 @@ module AccessMatchers
emulate_user(user, @membership)
visit(url)
- status_code == 200 && !current_path.in?([new_user_session_path, new_admin_session_path])
+ [200, 204].include?(status_code) && !current_path.in?([new_user_session_path, new_admin_session_path])
end
chain :of do |membership|