Sha256: 4ac8b09cb262eaf0dde9b4a4dd3770dea02a2e29ee56aee6a8612258a8796b39
Contents?: true
Size: 772 Bytes
Versions: 2
Compression:
Stored size: 772 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.1 | spec/spec_helper.rb |
eav_hashes-1.0.0 | spec/spec_helper.rb |