Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-24 10:28:41 +0400
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-26 11:51:17 +0400
commit89f7345f3ffdc212e60d4d657d878d1e5d6d6f9a (patch)
tree50929c127d5b45237cfbe9dd1dd26a406a7e7ed5 /spec/support/matchers.rb
parent1302dc8f0420dacec65ef1dcc955763c6c263cec (diff)
Remove unnecessary page. from tests.
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 15fb47004e9..52b11bd6323 100644
--- a/spec/support/matchers.rb
+++ b/spec/support/matchers.rb
@@ -42,19 +42,19 @@ module UrlAccess
def url_allowed?(user, url)
emulate_user(user)
visit url
- (page.status_code != 404 && current_path != new_user_session_path)
+ (status_code != 404 && current_path != new_user_session_path)
end
def url_denied?(user, url)
emulate_user(user)
visit url
- (page.status_code == 404 || current_path == new_user_session_path)
+ (status_code == 404 || current_path == new_user_session_path)
end
def url_404?(user, url)
emulate_user(user)
visit url
- page.status_code == 404
+ status_code == 404
end
def emulate_user(user)