spec/rails_app/app/models/user.rb in activity_notification-1.4.0 vs spec/rails_app/app/models/user.rb in activity_notification-1.4.1
- old
+ new
@@ -1,5 +1,5 @@
-if ENV['AN_TEST_DB'] != 'mongodb'
+unless ENV['AN_TEST_DB'] == 'mongodb'
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable, :confirmable
validates :email, presence: true
has_many :articles, dependent: :destroy
has_one :admin, dependent: :destroy