Sha256: bcbfb71cc4dc112c3fb8c8b9ad5fc3f0681c406d9ac957eaaee6aecf079ba57d
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require 'rubygems' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'pry' #require 'capybara/rspec' require 'factory_girl_rails' require 'database_cleaner' require 'webmock/rspec' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f } FactoryGirl.definition_file_paths = [ File.join(Rails.root, '../factories') ] RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.filter_run :focus => true config.run_all_when_everything_filtered = true config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false config.before(:suite) do FactoryGirl.reload File.open("#{Rails.root}/log/test.log", 'w') {|file| file.truncate(0) } #cleans the log file to make it readable and control it's size DatabaseCleaner.strategy = :truncation end config.before(:each) do DatabaseCleaner.start DatabaseCleaner.clean end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gmaps4rails-2.0.0.pre | spec/spec_helper.rb |