Sha256: 8ba7e8535259b1fe0c4027ac057a845c036e908c82cd1eef6f0bf5e1593f9ae5
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
ENV["RAILS_ENV"] ||= "test" require 'bundler/setup' Bundler.setup require 'simplecov' require 'coveralls' require 'rails' Coveralls.wear! SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new [ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start('rails') do add_filter '/spec/' add_filter '/lib/generators/templates/' add_filter '/lib/activity_notification/version.rb' 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 require 'rails_app/config/environment' require 'rspec/rails' require 'ammeter/init' require 'factory_girl_rails' require 'activity_notification' # For active record ORM require 'active_record' 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activity_notification-1.3.0 | spec/spec_helper.rb |