summaryrefslogtreecommitdiff
path: root/spec/support/matchers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r--spec/support/matchers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb
index dcdfa6d50ff..e0672166e92 100644
--- a/spec/support/matchers.rb
+++ b/spec/support/matchers.rb
@@ -18,17 +18,17 @@ RSpec::Matchers.define :be_denied_for do |user|
match do |url|
include UrlAccess
url_denied?(user, url)
- end
+ end
end
RSpec::Matchers.define :be_404_for do |user|
match do |url|
include UrlAccess
url_404?(user, url)
- end
+ end
end
-module UrlAccess
+module UrlAccess
def url_allowed?(user, url)
emulate_user(user)
visit url