Sha256: f9bee5dead49d1be99a98d85c7a55b0002b3a46862cbb338aff2edcd66ee8b89

Contents?: true

Size: 669 Bytes

Versions: 5

Compression:

Stored size: 669 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'
require File.expand_path('../tmp/sample/config/environment', __FILE__)
require 'rspec/rails'
require 'rspec/autorun'

Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"
  config.include FactoryGirl::Syntax::Methods

  # Because we are not running things in Rails we need to stub some secrets
  config.before(:each) { Rails.application.config.stub(:secret_token).and_return("SECRET") }
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
notifykit-0.3.0 spec/spec_helper.rb
notifykit-0.2.0 spec/spec_helper.rb
notifykit-0.1.0 spec/spec_helper.rb
authkit-0.4.0 spec/spec_helper.rb
authkit-0.2.1 spec/spec_helper.rb