2010-10-03 21:00:33 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'guard'
|
|
|
|
require 'rspec'
|
|
|
|
|
2010-10-17 19:42:40 +00:00
|
|
|
Dir["#{File.expand_path('..', __FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
|
|
|
|
|
|
puts "Please do not update/create files while tests are running."
|
2010-10-03 21:00:33 +00:00
|
|
|
|
|
|
|
RSpec.configure do |config|
|
|
|
|
config.color_enabled = true
|
|
|
|
|
|
|
|
config.before(:each) do
|
|
|
|
ENV["GUARD_ENV"] = 'test'
|
2010-10-17 19:42:40 +00:00
|
|
|
@fixture_path = Pathname.new(File.expand_path('../fixtures/', __FILE__))
|
2010-10-03 21:00:33 +00:00
|
|
|
end
|
2010-10-21 12:57:52 +00:00
|
|
|
|
|
|
|
config.after(:each) do
|
|
|
|
ENV["GUARD_ENV"] = nil
|
|
|
|
end
|
2010-10-03 21:00:33 +00:00
|
|
|
|
|
|
|
end
|