Created
December 20, 2012 16:57
-
-
Save kinsteronline/4346699 to your computer and use it in GitHub Desktop.
Rails template that includes mysql, rspec, guard and fabrication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'unicorn' | |
gem_group :development, :test do | |
gem 'rspec-rails' | |
gem 'ffaker' | |
end | |
gem_group :development do | |
gem 'guard' | |
gem 'rb-inotify', require: false | |
gem 'rb-fsevent', require: false | |
gem 'guard-rspec' | |
end | |
gem_group :test do | |
gem 'fabrication' | |
end | |
gem_group :production do | |
gem 'syslogger' | |
end | |
initializer 'generators.rb', <<-RUBY | |
Rails.application.config.generators do |g| | |
g.test_framework :rspec, fixture: true | |
g.fixture_replacement :fabrication | |
end | |
RUBY | |
generate 'rspec:install' | |
run 'mkdir spec/fabricators spec/controllers spec/helpers spec/models spec/routing spec/requests spec/lib' | |
file 'Guardfile', <<-GUARD | |
guard :rspec, :cli => '--color --format doc --fail-fast' do | |
watch('spec/spec_helper.rb') { "spec" } | |
watch('config/routes.rb') { "spec/routing" } | |
watch('app/controllers/application_controller.rb') { "spec/controllers" } | |
watch(%r{^(app|spec)/controllers/.+\.rb$}) { "spec/controllers" } | |
watch(%r{^(app|spec)/models/.+\.rb$}) { "spec/models" } | |
end | |
GUARD | |
run 'rm public/index.html' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment