Sha256: e7b3d9fffc060ea73da6972941a30a6e417ff9807be7df9d13ae5df345693fab
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "lib") require "rspec" require "restorm" # 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 Restorm::Testing::Macros::ModelMacros config.include Restorm::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restorm-1.0.0 | spec/spec_helper.rb |