Ask A Question

Notifications

You’re not receiving notifications from this thread.

Testing Rails ActionCable with Devise Discussion

Can't we just use sign_in and sign_out helpers from the Devise, instead of stubbing out Warden?

Reply

How in the world of all things RSpec would you recreate

  class FakeEnv
    attr_reader(:user)

    def initialize(user)
      @user = user
    end
  end

With RSpec's DSL?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 84,387+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.