Sha256: cfbfa68d0dd4358afdf47472c030e5e9f244467b27f26edfc8bdf0b4ed1560af

Contents?: true

Size: 565 Bytes

Versions: 9

Compression:

Stored size: 565 Bytes

Contents

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

require "rspec"
require "her"

# Require everything in `spec/support`
Dir[File.expand_path('../../spec/support/**/*.rb', __FILE__)].map(&method(:require))

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

9 entries across 9 versions & 1 rubygems

Version Path
her-0.6.8 spec/spec_helper.rb
her-0.6.7 spec/spec_helper.rb
her-0.6.6 spec/spec_helper.rb
her-0.6.5 spec/spec_helper.rb
her-0.6.4 spec/spec_helper.rb
her-0.6.3 spec/spec_helper.rb
her-0.6.2 spec/spec_helper.rb
her-0.6.1 spec/spec_helper.rb
her-0.6 spec/spec_helper.rb