test/models_test.rb in devise_invitable-0.2.2 vs test/models_test.rb in devise_invitable-0.2.3

- old
+ new

@@ -1,9 +1,9 @@ require 'test/test_helper' class Invitable < User - devise :authenticatable, :invitable, :invite_for => 5.days + devise :database_authenticatable, :invitable, :invite_for => 5.days end class ActiveRecordTest < ActiveSupport::TestCase def include_module?(klass, mod) klass.devise_modules.include?(mod) && @@ -19,13 +19,13 @@ assert_not include_module?(klass, mod), "#{klass} include #{mod}" end end test 'add invitable module only' do - assert_include_modules Invitable, :authenticatable, :invitable + assert_include_modules Invitable, :database_authenticatable, :invitable end - test 'set a default value for invit_for' do + test 'set a default value for invite_for' do assert_equal 5.days, Invitable.invite_for end test 'invitable attributes' do assert_not_nil Invitable.columns_hash['invitation_token']