Sha256: 25b533008bb0b9bf94585f0170bb6e11b910740054733c10f4e75de41ac05619
Contents?: true
Size: 654 Bytes
Versions: 16
Compression:
Stored size: 654 Bytes
Contents
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "lib") require "rspec" require "her" # Require everything in `spec/support` Dir[File.expand_path("../../spec/support/**/*.rb", __FILE__)].map(&method(:require)) # Remove ActiveModel deprecation message I18n.enforce_available_locales = false RSpec.configure do |config| config.include Her::Testing::Macros::ModelMacros config.include Her::Testing::Macros::RequestMacros config.before :each do @spawned_models = [] end config.after :each do @spawned_models.each do |model| Object.instance_eval { remove_const model } if Object.const_defined?(model) end end end
Version data entries
16 entries across 16 versions & 1 rubygems