Skip to content

Instantly share code, notes, and snippets.

@justin808
Created March 10, 2014 07:43
Show Gist options
  • Save justin808/9460979 to your computer and use it in GitHub Desktop.
Save justin808/9460979 to your computer and use it in GitHub Desktop.
Testing gems for Rails, Capybara, Poltergeist, Rspec
# http://soupmatt.com/fixing-bundlewithout-on-heroku-cedar
# Hack to make heroku work. Works b/c on heroku, the ENV['HOME'] will be 'app'
# and this will then return test, which heroku knows to exclude
def hg(g)
(ENV['HOME'].gsub('/', '') == 'app' ? 'test' : g)
end
group :test, hg(:ci) do
gem 'simplecov', require: false
gem 'database_cleaner'
gem 'turn', require: false
gem 'factory_girl_rails'
gem 'launchy' # this lets us call save_and_open_page to see what's on a page for debugging capybara tests
gem 'capybara'
gem 'capybara-screenshot', github: 'parndt/capybara-screenshot', branch: 'fix-rspec-3-0-0-deprecation'
gem 'show_me_the_cookies'
gem 'rspec-instafail'
gem 'shoulda-matchers'
gem 'poltergeist'
gem 'rspec-retry', github: 'justin808/rspec-retry', branch: 'justin808-rspec-299'
gem 'resque_spec', github: 'justin808/resque_spec', branch: 'fix-for-resque-heroku'
gem 'vcr'
gem 'fakeweb'
gem 'zeus', '~> 0.13.4.pre2'
end
group :test, :development do
# http://railscasts.com/episodes/413-fast-tests
gem 'rspec-rails', '~> 2.99.0.beta2'
gem 'rspec', '>= 2.9.9.beta2'
gem 'rspec-its', '~> 1.0.0'
gem 'parallel_tests'
gem 'zeus-parallel_tests'
gem 'heroku_san', '~> 4.3.2'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment