Sha256: b33c9d4efa24254a824bb23a287dd4945229883c5a5d2b23daec9f009a9024f7
Contents?: true
Size: 481 Bytes
Versions: 6
Compression:
Stored size: 481 Bytes
Contents
ENV["RAILS_ENV"] = "test" require "spec_helper" require "rails" rails_version = Gem.loaded_specs["rails"].version.to_s[/^\d\.\d/] require "support/apps/rails_#{rails_version}_app/config/environment" require "rspec/rails" RSpec.configure do |config| config.infer_spec_type_from_file_location! config.before :suite do Rails.logger.level = 4 load Rails.root.join("db", "schema.rb") unless User.table_exists? end config.before :each do User.delete_all end end
Version data entries
6 entries across 6 versions & 2 rubygems