Sha256: 0a56b2a0411e27ae999f757e126c60d81d6b8e5fda38f9a2f599cca02013b6c3

Contents?: true

Size: 666 Bytes

Versions: 12

Compression:

Stored size: 666 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])

require "rspec"
require "rspec/its"
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

12 entries across 12 versions & 3 rubygems

Version Path
her-0.8.2 spec/spec_helper.rb
her5-0.8.2 spec/spec_helper.rb
her5-0.8.1 spec/spec_helper.rb
her-0.8.1 spec/spec_helper.rb
her-0.7.6 spec/spec_helper.rb
her-0.7.5 spec/spec_helper.rb
her-0.7.4 spec/spec_helper.rb
herr-0.7.3 spec/spec_helper.rb
her-0.7.3 spec/spec_helper.rb
her-0.7.2 spec/spec_helper.rb
her-0.7.1 spec/spec_helper.rb
her-0.7 spec/spec_helper.rb