Sha256: 2a30114c5c25c42c9447b1ba54d91ddf403561dc9a1daacf846198d252ab9034

Contents?: true

Size: 863 Bytes

Versions: 4

Compression:

Stored size: 863 Bytes

Contents

require 'simplecov'
require 'simplecov-rcov'
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start do
  add_filter "/spec/"
end

require 'active_record'
require 'database_cleaner'
require 'notifiable/gcm/spacialdb'
require 'webmock/rspec'
require 'byebug'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# Setup ActiveRecord db connection
ActiveRecord::Base.establish_connection(YAML.load_file('config/database.yml')['test'])

RSpec.configure do |config|  
  config.mock_with :rspec
  config.order = "random"
  
  config.before(:all) {
    Notifiable.notifier_classes[:gcm] = Notifiable::Gcm::Spacialdb::Batch    
    Notifiable::App.define_configuration_accessors(Notifiable.notifier_classes)
  }
  
  config.before(:each) {
    DatabaseCleaner.start
  }
  
  config.after(:each) {
    DatabaseCleaner.clean
  }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
notifiable-gcm-spacialdb-0.13.0 spec/spec_helper.rb
notifiable-gcm-spacialdb-0.12.0 spec/spec_helper.rb
notifiable-gcm-spacialdb-0.11.1 spec/spec_helper.rb
notifiable-gcm-spacialdb-0.11.0 spec/spec_helper.rb