```ruby
module Authentication
  def logged_in
    @user ||= create(:user)

    sign_in(@user, :bypass => Devise.masquerade_bypass_warden_callback)
  end

  def current_user
    controller.send(:current_user)
  end
end

```

Fix sign_in by_pass option for the auth test
user
```ruby
module Authentication
  def logged_in
    @user ||= create(:user)
    sign_in(@user)
  end

  def current_user
    controller.send(:current_user)
  end
end

```
assistant