Sha256: 1abb47fbd7d86a3778080ea1a2f1faacbde57ce739e303fc3ef01658a129eb98

Contents?: true

Size: 1017 Bytes

Versions: 7

Compression:

Stored size: 1017 Bytes

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
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
  end
  config.include Devise::Test::ControllerHelpers, type: :controller
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activity_notification-1.2.1 spec/spec_helper.rb
activity_notification-1.2.0 spec/spec_helper.rb
activity_notification-1.1.0 spec/spec_helper.rb
activity_notification-1.0.2 spec/spec_helper.rb
activity_notification-1.0.1 spec/spec_helper.rb
activity_notification-1.0.0 spec/spec_helper.rb
activity_notification-0.0.10 spec/spec_helper.rb