public
Last active

  • Download Gist
Gemfile
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#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
discover.rb
Ruby
1
Autotest.add_discovery { "rspec2" }
spec_helper.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.