spec/spec_helper.rb in notifiable-rails-0.24.0 vs spec/spec_helper.rb in notifiable-rails-0.24.1

- old
+ new

@@ -44,10 +44,13 @@ # Infer the spec type from the containing folder config.infer_spec_type_from_file_location! config.before(:suite) do + Notifiable.notifier_classes[:mock] = MockNotifier + Notifiable.notifier_classes[:configurable_mock] = ConfigurableMockNotifier + Notifiable::App.define_configuration_accessors(Notifiable.notifier_classes) #FactoryGirl.lint end config.before(:each) { DatabaseCleaner.start @@ -65,15 +68,12 @@ def enqueue(device_token, localized_notification) processed(device_token, 0) end end -Notifiable.notifier_classes[:mock] = MockNotifier - class ConfigurableMockNotifier < Notifiable::NotifierBase notifier_attribute :use_sandbox def use_sandbox @use_sandbox end end -Notifiable.notifier_classes[:configurable_mock] = ConfigurableMockNotifier