Skip to content
Browse files

[account] fix test

  • Loading branch information...
1 parent 25a3b28 commit e5346df38b0faabafc7f54e5c0983f7fbe18f2a5 @achiu achiu committed
Showing with 6 additions and 2 deletions.
  1. +1 −0 app/models/plugins/authentication.rb
  2. +5 −2 test/models/account_test.rb
View
1 app/models/plugins/authentication.rb
@@ -25,6 +25,7 @@ def self.configure(model)
module ClassMethods
attr_accessor :password
+ attr_accessor :password_confirmation
end
module InstanceMethods
View
7 test/models/account_test.rb
@@ -4,8 +4,11 @@
setup { Account.delete_all }
context 'definition' do
- setup { Account.make }
-
+ setup { Account }
+
+ asserts_topic.has_plugin Plugins::Karma
+ asserts_topic.has_plugin Plugins::Authentication
+
asserts_topic.has_key :first_name, String
asserts_topic.has_key :last_name, String
asserts_topic.has_key :username, String

0 comments on commit e5346df

Please sign in to comment.
Something went wrong with that request. Please try again.