class Suspenders::CiGenerator
Public Instance Methods
configure_ci()
click to toggle source
# File lib/suspenders/generators/ci_generator.rb, line 14 def configure_ci template "circle.yml.erb", "circle.yml" end
simplecov_gem()
click to toggle source
# File lib/suspenders/generators/ci_generator.rb, line 5 def simplecov_gem gem "simplecov", require: false, group: [:test] Bundler.with_unbundled_env { run "bundle install" } end
simplecov_test_integration()
click to toggle source
# File lib/suspenders/generators/ci_generator.rb, line 10 def simplecov_test_integration prepend_template_to_file(test_helper_file, "partials/ci_simplecov.rb") end
Private Instance Methods
test_helper_file()
click to toggle source
# File lib/suspenders/generators/ci_generator.rb, line 20 def test_helper_file if using_rspec? "spec/spec_helper.rb" else "test/test_helper.rb" end end
using_rspec?()
click to toggle source
# File lib/suspenders/generators/ci_generator.rb, line 28 def using_rspec? File.exist?("spec/spec_helper.rb") end