Sha256: 1744f73f06aeea6a6de9a08b45dca6dead7c90c265cfaee509062e8bba2dbd3f
Contents?: true
Size: 652 Bytes
Versions: 5
Compression:
Stored size: 652 Bytes
Contents
require_relative "base" module Suspenders class CiGenerator < Generators::Base def simplecov_gem gem "simplecov", require: false, group: [:test] Bundler.with_unbundled_env { run "bundle install" } end def simplecov_test_integration prepend_template_to_file(test_helper_file, "partials/ci_simplecov.rb") end def configure_ci template "circle.yml.erb", "circle.yml" end private def test_helper_file if using_rspec? "spec/spec_helper.rb" else "test/test_helper.rb" end end def using_rspec? File.exist?("spec/spec_helper.rb") end end end
Version data entries
5 entries across 5 versions & 1 rubygems