summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-06 18:08:29 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-06 19:50:48 +0300
commitb356c7ddad1ada1d78136386536f6676ca8b1df4 (patch)
tree30bede591db297a0d3016734d204af16852f8b0b
parent42c6555bab47eb042749be1f24d486797eb8d8ee (diff)
downloadgitlab-ce-b356c7ddad1ada1d78136386536f6676ca8b1df4.tar.gz
Update user routing spec after constrainer logic changeddz-root-url
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--spec/routing/routing_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb
index 3608aa70f65..0dd00af878d 100644
--- a/spec/routing/routing_spec.rb
+++ b/spec/routing/routing_spec.rb
@@ -9,7 +9,7 @@ require 'spec_helper'
# user_calendar_activities GET /u/:username/calendar_activities(.:format)
describe UsersController, "routing" do
it "to #show" do
- allow(User).to receive(:find_by_username).and_return(true)
+ allow(User).to receive(:find_by).and_return(true)
expect(get("/User")).to route_to('users#show', username: 'User')
end