Skip to content

Instantly share code, notes, and snippets.

@thedeeno
Created July 6, 2010 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thedeeno/465528 to your computer and use it in GitHub Desktop.
Save thedeeno/465528 to your computer and use it in GitHub Desktop.
Autotest.add_discovery { "rspec2" }
#excerpt
...
group :test do
gem "rspec-rails", :git => "git://github.com/rspec/rspec-rails.git"
gem "rspec", :git => "git://github.com/rspec/rspec.git"
gem "rspec-core", :git => "git://github.com/rspec/rspec-core.git"
gem "rspec-expectations", :git => "git://github.com/rspec/rspec-expectations.git"
gem "rspec-mocks", :git => "git://github.com/rspec/rspec-mocks.git"
gem 'autotest'
gem 'autotest-rails-pure'
gem 'autotest-growl'
...
end
ENV["RAILS_ENV"] ||= 'test'
require 'rubygems'
require 'bundler'
Bundler.setup
require File.expand_path("../../config/environment", __FILE__)
require 'active_record'
require 'action_controller'
require 'action_mailer'
require 'rspec/rails'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
RSpec.configure do |config|
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
config.mock_with :rspec
config.fixture_path = "#{::Rails.root}/spec/fixtures"
config.use_transactional_fixtures = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment