ENV["RAILS_ENV"] = "test"

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'rails/all'
require 'tok'

require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'rspec/rails'
require 'ammeter/init'
require 'factory_girl_rails'

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
  config.use_transactional_fixtures = true
  config.infer_spec_type_from_file_location!
end

ENV["RAILS_ENV"] = "test"

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'rails/all'
require 'tok'

require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'rspec/rails'
require 'ammeter/init'
require 'factory_girl_rails'

Dir[File.expand_path('../../spec/support/**/*.rb', __FILE__)].each { |f| require f }

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
  config.include Tok::GeneratorHelpers
  config.use_transactional_fixtures = true
  config.infer_spec_type_from_file_location!
end

Add a helper for generators' specs (to reset destination folder)
Add a helper for generators' specs (to reset destination folder)
