Skip to content

Commit

Permalink
Configure mongoid.yml to not raise error in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaryCBaylis committed Apr 18, 2015
1 parent b776e11 commit 177b283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class UserController < ApplicationController
class UsersController < ApplicationController
def show
@user = User.find_by(username: params[:username])
if UserTweet.find_by(user_name: current_user["email"])
Expand Down
2 changes: 2 additions & 0 deletions config/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ test:
# low amounts for fast failures.
max_retries: 1
retry_interval: 0
options:
raise_not_found_error: false
production:
sessions:
default:
Expand Down

0 comments on commit 177b283

Please sign in to comment.