summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-05-30 04:05:34 +0000
committerThe Bundler Bot <bot@bundler.io>2017-05-30 04:05:34 +0000
commitf4bc5c56cbaf0bb521774fc5a07ca4b0513a2519 (patch)
tree4c0fa7d53fd6ea87cfaae15bfea3c4643b0fe202
parent58f37e3bf65ca971f24aea51cffea6b250275d1d (diff)
parent0928eb10bb1a4eed2b420d4dce3fa34bc90d26c6 (diff)
downloadbundler-f4bc5c56cbaf0bb521774fc5a07ca4b0513a2519.tar.gz
Auto merge of #5635 - koic:tweak_newgem_template_for_rspec, r=indirect
Tweak a newgem template for RSpec `--require spec_helper` is contained in .rspec by default when running `rspec --init` on RSpec 3. ```sh % rspec --version 3.5.4 % rspec --init create .rspec create spec/spec_helper.rb % cat .rspec --color --require spec_helper ``` It seems that the code of template premise the RSpec 3, so I think that it was reasonable to adjust to it. Related PR #5634
-rw-r--r--lib/bundler/templates/newgem/rspec.tt1
-rw-r--r--lib/bundler/templates/newgem/spec/newgem_spec.rb.tt2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/templates/newgem/rspec.tt b/lib/bundler/templates/newgem/rspec.tt
index 8c18f1abdd..34c5164d9b 100644
--- a/lib/bundler/templates/newgem/rspec.tt
+++ b/lib/bundler/templates/newgem/rspec.tt
@@ -1,2 +1,3 @@
--format documentation
--color
+--require spec_helper
diff --git a/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt b/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt
index b7ef7f9e4a..c63b487830 100644
--- a/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt
+++ b/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt
@@ -1,5 +1,3 @@
-require "spec_helper"
-
RSpec.describe <%= config[:constant_name] %> do
it "has a version number" do
expect(<%= config[:constant_name] %>::VERSION).not_to be nil