Skip to content

Commit c6d5bda

Browse files
committed
Uncomment the spec support glob in generated apps and remove direct require of helper file
1 parent 1d1524d commit c6d5bda

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

example_app_generator/generate_stuff.rb

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def using_source_path(path)
146146
end
147147

148148
gsub_file 'spec/spec_helper.rb', /^=(begin|end)/, ''
149+
gsub_file 'spec/rails_helper.rb', /^# Rails\.root\.glob\('spec.support/, "Rails.root.glob('spec/support"
149150

150151
# Warnings are too noisy in the sample apps
151152
gsub_file 'spec/spec_helper.rb',

features/system_specs/system_specs.feature

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ Feature: System specs
8787
Given a file named "spec/system/widget_system_spec.rb" with:
8888
"""ruby
8989
require "rails_helper"
90-
require_relative "../support/capybara.rb"
9190
9291
RSpec.describe "Widget management", type: :system do
9392
before do

0 commit comments

Comments
 (0)