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

Version Path
her-1.1.1 spec/spec_helper.rb
her-1.1.0 spec/spec_helper.rb
her-0.10.4 spec/spec_helper.rb
her-1.0.3 spec/spec_helper.rb
her-0.10.3 spec/spec_helper.rb
her-1.0.2 spec/spec_helper.rb
her-0.10.2 spec/spec_helper.rb
her-1.0.1 spec/spec_helper.rb
her-1.0.0 spec/spec_helper.rb
her-0.10.1 spec/spec_helper.rb
her-0.10.0 spec/spec_helper.rb
her-0.9.0 spec/spec_helper.rb
her-0.8.6 spec/spec_helper.rb
her-0.8.5 spec/spec_helper.rb
her-0.8.4 spec/spec_helper.rb
her-0.8.3 spec/spec_helper.rb