Sha256: 7d35d182f6bb4577971bbd774c97149b61312b141666e73e911feca93f9abde5
Contents?: true
Size: 1017 Bytes
Versions: 2
Compression:
Stored size: 1017 Bytes
Contents
# Adding spec support per article # http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl ENV['RAILS_ENV'] ||= 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'factory_girl_rails' require 'phony_rails' require "codeclimate-test-reporter" CodeClimate::TestReporter.start Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load FactoryGirl factories manually (not sure why not working automatically) Dir["#{File.dirname(__FILE__)}/factories/*.rb"].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec # Turn off transactions features per tutorial: # http://devblog.avdi.org/2012/08/31/configuring-database_cleaner-with-rails-rspec-capybara-and-selenium/ config.use_transactional_fixtures = false config.infer_base_class_for_anonymous_controllers = false config.order = "random" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gringotts-0.6.7 | spec/spec_helper.rb |
gringotts-0.6.5 | spec/spec_helper.rb |