spec/spec_helper.rb in eav_hashes-1.0.1 vs spec/spec_helper.rb in eav_hashes-1.0.2

- old
+ new

@@ -1,25 +1,25 @@ -# 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 +# 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 \ No newline at end of file