Skip to content

Instantly share code, notes, and snippets.

@JobV
JobV / install.md
Last active December 20, 2015 05:28 — forked from JanDintel/install.md

Guard with Spork for RSpec, Cucumber and Test::Unit

Gems

group :development, :test
  gem 'guard-rspec'
  gem 'guard-livereload'
  gem 'spork-rails', github: 'sporkrb/spork-rails' # rubygems version not rails 4 compatible
  gem 'guard-spork'
 gem 'childprocess'
# spec/support/db_cleaner.rb
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do