2011-06-17 10:32:50 +00:00
|
|
|
require 'rspec'
|
|
|
|
require 'guard/rails-assets'
|
|
|
|
require 'support/shared_examples'
|
2011-07-31 20:37:09 +00:00
|
|
|
require 'support/stdout_helper'
|
2011-08-02 09:38:59 +00:00
|
|
|
require 'guard/rails-assets/cli_runner'
|
|
|
|
require 'guard/rails-assets/rails_runner'
|
2011-06-17 10:32:50 +00:00
|
|
|
|
|
|
|
RSpec.configure do |config|
|
|
|
|
config.color_enabled = true
|
|
|
|
config.filter_run :focus => true
|
|
|
|
config.run_all_when_everything_filtered = true
|
|
|
|
|
|
|
|
config.before(:each) do
|
|
|
|
ENV["GUARD_ENV"] = 'test'
|
|
|
|
@project_path = Pathname.new(File.expand_path('../../', __FILE__))
|
|
|
|
end
|
|
|
|
|
|
|
|
config.after(:each) do
|
|
|
|
ENV["GUARD_ENV"] = nil
|
|
|
|
end
|
2011-07-31 20:37:09 +00:00
|
|
|
|
|
|
|
config.include(Helpers)
|
2011-06-17 10:32:50 +00:00
|
|
|
|
|
|
|
end
|