summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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