diff options
Diffstat (limited to 'lib/bundler/templates')
-rw-r--r-- | lib/bundler/templates/newgem/gitignore.tt | 5 | ||||
-rw-r--r-- | lib/bundler/templates/newgem/spec/spec_helper.rb.tt | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/gitignore.tt b/lib/bundler/templates/newgem/gitignore.tt index ebff7ac53c..573d76b4c2 100644 --- a/lib/bundler/templates/newgem/gitignore.tt +++ b/lib/bundler/templates/newgem/gitignore.tt @@ -14,3 +14,8 @@ *.a mkmf.log <%- end -%> +<%- if config[:test] == "rspec" -%> + +# rspec failure tracking +.rspec_status +<%- end -%> diff --git a/lib/bundler/templates/newgem/spec/spec_helper.rb.tt b/lib/bundler/templates/newgem/spec/spec_helper.rb.tt index 4c69d354b3..a5e7f92ffe 100644 --- a/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +++ b/lib/bundler/templates/newgem/spec/spec_helper.rb.tt @@ -1,2 +1,11 @@ -$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) +require "bundler/setup" require "<%= config[:namespaced_path] %>" + +RSpec.configure do |config| + # Enable flags like --only-failures and --next-failure + config.example_status_persistence_file_path = ".rspec_status" + + config.expect_with :rspec do |c| + c.syntax = :expect + end +end |