Skip to content

Instantly share code, notes, and snippets.

@cavalle
Created May 7, 2010 15:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cavalle/4aa21d7ba29977683dc4 to your computer and use it in GitHub Desktop.
Save cavalle/4aa21d7ba29977683dc4 to your computer and use it in GitHub Desktop.
require "authlogic/test_case"
Spec::Runner.configure do |config|
config.include Authlogic::TestCase, :type => :acceptance
config.before(:each, :type => :acceptance) do
activate_authlogic
end
end
@cmrichards
Copy link

I had to do this in the latest release in acceptance_helper :

require "authlogic/test_case"

RSpec.configuration.include Authlogic::TestCase, :type => :acceptance
RSpec.configuration.before(:each) do
activate_authlogic
end

@cavalle
Copy link
Author

cavalle commented Dec 18, 2010

Right, thanks evilgeenius. It is updated now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment