Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: thoughtbot/suspenders
...
head fork: thoughtbot/suspenders
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Aug 08, 2012
@jferris jferris Use simplecov for C0 coverage
* Include simplecov gem in Gemfile, test group
* Insert simplecov init into spec_helper.rb, env.rb
44a9461
Showing with 5 additions and 0 deletions.
  1. +4 −0 lib/suspenders/app_builder.rb
  2. +1 −0  templates/Gemfile_additions
View
4 lib/suspenders/app_builder.rb
@@ -2,6 +2,8 @@ module Suspenders
class AppBuilder < Rails::AppBuilder
include Suspenders::Actions
+ SIMPLECOV_INIT = %{require 'simplecov'\nSimpleCov.start 'rails'\n\n}
+
def readme
template 'README.md.erb', 'README.md'
end
@@ -109,6 +111,7 @@ def configure_action_mailer
def generate_rspec
generate 'rspec:install'
inject_into_file '.rspec', " --drb", :after => '--color'
+ prepend_file 'spec/spec_helper.rb', SIMPLECOV_INIT
replace_in_file 'spec/spec_helper.rb',
'# config.mock_with :mocha', 'config.mock_with :mocha'
end
@@ -120,6 +123,7 @@ def generate_cucumber(options = {})
copy_file 'features_support_env.rb', 'features/support/env.rb',
:force => true
+ prepend_file 'features/support/env.rb', SIMPLECOV_INIT
if options[:webkit]
inject_into_file 'features/support/env.rb',
"\n Capybara.javascript_driver = :webkit",
View
1  templates/Gemfile_additions
@@ -25,6 +25,7 @@ group :test do
gem 'timecop'
gem 'shoulda-matchers'
gem 'launchy'
+ gem 'simplecov', require: false
end
group :staging, :production do

No commit comments for this range

Something went wrong with that request. Please try again.