Sha256: 0706e3e76a5bbe92ab04ae53ebd37af1e2c503e85eb2bd2a1f84336e50e1e967
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 Bytes
Contents
# destroy our test DB before rails gets to open it begin File.delete File.expand_path("../dummy/db/test.sqlite3", __FILE__) rescue puts "Unable to delete test.sqlite3!\nDon't worry if this is the first time running specs." end ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' Rails.backtrace_cleaner.remove_silencers! # get some migrations up in here ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) require File.expand_path("../dummy/db/seeds.rb", __FILE__) RSpec.configure do |config| require 'rspec/expectations' #config.formatter = :documentation config.use_transactional_fixtures = true config.include RSpec::Matchers end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eav_hashes-1.0.3 | spec/spec_helper.rb |
eav_hashes-1.0.2 | spec/spec_helper.rb |