spec/spec_helper.rb in notifiable-apns-grocer-0.12.2 vs spec/spec_helper.rb in notifiable-apns-grocer-0.13.1
- old
+ new
@@ -19,14 +19,18 @@
db_path = 'spec/support/db/test.sqlite3'
DatabaseCleaner.strategy = :truncation
Rails.logger = Logger.new(STDOUT)
+require 'byebug'
+
RSpec.configure do |config|
config.mock_with :rspec
config.order = "random"
config.before(:all) {
+ Notifiable.notifier_classes[:apns] = Notifiable::Apns::Grocer::Stream
+ Notifiable::App.define_configuration_accessors(Notifiable.notifier_classes)
# DB setup
ActiveRecord::Base.establish_connection(
{ :adapter => 'sqlite3',
:database => db_path,