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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-11-08 15:32:42 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-11-08 15:32:42 +0300
commit08d21fe89927fa9ebd3695fde047a17d27893dbf (patch)
tree4c6cecf395a202d41efb6390d5e8abb9975bb89d /spec/lib/constraints
parent82e551bdac7f2792e1d6aceb1b0b674dbd3dda81 (diff)
Add small improvements to constrainers and specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/lib/constraints')
-rw-r--r--spec/lib/constraints/group_url_constrainer_spec.rb2
-rw-r--r--spec/lib/constraints/user_url_constrainer_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/constraints/group_url_constrainer_spec.rb b/spec/lib/constraints/group_url_constrainer_spec.rb
index be69a36c2b6..42299b17c2b 100644
--- a/spec/lib/constraints/group_url_constrainer_spec.rb
+++ b/spec/lib/constraints/group_url_constrainer_spec.rb
@@ -14,6 +14,6 @@ describe GroupUrlConstrainer, lib: true do
end
def request(path)
- OpenStruct.new(path: path)
+ double(:request, path: path)
end
end
diff --git a/spec/lib/constraints/user_url_constrainer_spec.rb b/spec/lib/constraints/user_url_constrainer_spec.rb
index d7b7d5664ff..b3f8530c609 100644
--- a/spec/lib/constraints/user_url_constrainer_spec.rb
+++ b/spec/lib/constraints/user_url_constrainer_spec.rb
@@ -11,6 +11,6 @@ describe UserUrlConstrainer, lib: true do
end
def request(path)
- OpenStruct.new(path: path)
+ double(:request, path: path)
end
end