Sha256: 9449b6ac97763e4ffbe766ae889a2e559f107eee3a8e2b2fdfd1534c17fb18f1

Contents?: true

Size: 910 Bytes

Versions: 10

Compression:

Stored size: 910 Bytes

Contents

ENV["RAILS_ENV"] ||= "test"
require File.expand_path("../../spec/dummy/config/environment", __FILE__)
abort("The Rails environment is running in production mode!") if Rails.env.production?
require "pry"
require "spec_helper"
require "rspec/rails"
require "factory_girl_rails"

ActiveRecord::Migration.maintain_test_schema!

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

RSpec.configure do |config|
  config.fixture_path = "#{::Rails.root}/spec/assets"
  config.use_transactional_fixtures = true
  config.infer_spec_type_from_file_location!
  config.filter_rails_from_backtrace!

  config.filter_run :focus
  config.run_all_when_everything_filtered = true

  FactoryGirl.definition_file_paths = ["#{::Rails.root}/spec/factories"]
  FactoryGirl.find_definitions

  config.include FactoryGirl::Syntax::Methods
  config.include ActionDispatch::TestProcess
  config.include TestHelpers
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
gemaker-0.3.0 lib/gemaker/templates/engine/rails_helper.rb.erb
gemaker-0.2.0 lib/gemaker/templates/engine/rails_helper.rb.erb
human_attributes-0.3.1 spec/rails_helper.rb
human_attributes-0.3.0 spec/rails_helper.rb
human_attributes-0.2.0 spec/rails_helper.rb
human_attributes-0.1.1 spec/rails_helper.rb
human_attributes-0.1.0 spec/rails_helper.rb
send_grid_mailer-0.2.0 spec/rails_helper.rb
send_grid_mailer-0.1.1 spec/rails_helper.rb
send_grid_mailer-0.1.0 spec/rails_helper.rb