2010-10-03 21:00:33 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'guard'
|
|
|
|
require 'rspec'
|
|
|
|
|
2010-11-25 23:57:08 +00:00
|
|
|
ENV["GUARD_ENV"] = 'test'
|
|
|
|
|
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
|
2011-04-16 21:13:29 +00:00
|
|
|
|
2010-11-25 23:57:08 +00:00
|
|
|
config.filter_run :focus => true
|
2011-09-15 23:01:58 +00:00
|
|
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
2010-11-25 23:57:08 +00:00
|
|
|
config.run_all_when_everything_filtered = true
|
2011-04-16 21:13:29 +00:00
|
|
|
|
2010-10-03 21:00:33 +00:00
|
|
|
config.before(:each) do
|
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
|
2011-04-16 21:13:29 +00:00
|
|
|
|
|
|
|
end
|