Skip to content
Snippets Groups Projects
Commit b356c7dd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Update user routing spec after constrainer logic changed

parent 42c6555b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment