BigW Consortium Gitlab

Commit b356c7dd by Dmitriy Zaporozhets

Update user routing spec after constrainer logic changed

parent 42c6555b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment