test/devise_test.rb in devise-1.0.11 vs test/devise_test.rb in devise-1.1.pre
- old
+ new
@@ -23,11 +23,11 @@
test 'warden manager configuration' do
config = Warden::Config.new
Devise.configure_warden(config)
assert_equal Devise::FailureApp, config.failure_app
- assert_equal [:rememberable, :http_authenticatable, :token_authenticatable, :database_authenticatable], config.default_strategies
+ assert_equal [:rememberable, :http_authenticatable, :token_authenticatable, :authenticatable], config.default_strategies
assert_equal :user, config.default_scope
assert config.silence_missing_strategies?
end
test 'warden manager user configuration through a block' do
@@ -60,14 +60,9 @@
assert_nothing_raised(Exception) { Devise.add_module(:kivi, :controller => :fruits) }
assert_not_nil Devise::CONTROLLERS[:fruits]
assert_equal 1, Devise::CONTROLLERS[:fruits].select { |v| v == :kivi }.size
Devise::ALL.delete(:kivi)
Devise::CONTROLLERS.delete(:fruits)
-
- assert_nothing_raised(Exception) { Devise.add_module(:carrot, :route => :vegetable) }
- assert_equal 1, Devise::ROUTES.select { |v| v == :vegetable }.size
- Devise::ALL.delete(:carrot)
- Devise::ROUTES.delete(:vegetable)
assert_nothing_raised(Exception) { Devise.add_module(:authenticatable_again, :model => 'devise/model/authenticatable') }
assert defined?(Devise::Models::AuthenticatableAgain)
end
end