spec/spec_helper.rb in activity_notification-1.2.1 vs spec/spec_helper.rb in activity_notification-1.3.0

- old
+ new

@@ -18,10 +18,15 @@ if Rails::VERSION::MAJOR == 5 nocov_token 'skip-rails5' elsif Rails::VERSION::MAJOR == 4 nocov_token 'skip-rails4' end + if ENV['AN_ORM'] == 'mongoid' + add_filter '/lib/activity_notification/orm/active_record' + else + add_filter '/lib/activity_notification/orm/mongoid' + end end # Testing with Devise require 'devise' # Dummy application @@ -37,8 +42,10 @@ RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods config.before(:all) do FactoryGirl.reload + ActivityNotification::Notification.delete_all + ActivityNotification::Subscription.delete_all end config.include Devise::Test::ControllerHelpers, type: :controller end \ No newline at end of file