Skip to content

Commit 6d6af2f

Browse files
author
Sam Phippen
committed
Fix up dependencies for the example app.
We need the rails controller testing gem to be able to test the sample app. We also don't want it to run web console at all.
1 parent 0e5d559 commit 6d6af2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example_app_generator/generate_app.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# Remove the existing rails version so we can properly use master or other
1515
# edge branches
1616
gsub_file 'Gemfile', /^.*\bgem 'rails.*$/, ''
17+
gsub_file "Gemfile", /.*web-console.*/, ''
18+
19+
if Rails::VERSION::STRING >= '5.0.0'
20+
append_to_file('Gemfile', "gem 'rails-controller-testing', :git => 'https://github.com/rails/rails-controller-testing'")
21+
end
1722

1823
# Use our version of RSpec and Rails
1924
append_to_file 'Gemfile', <<-EOT.gsub(/^ +\|/, '')

0 commit comments

Comments
 (0)