Skip to content

Commit 359779f

Browse files
committed
Remove redundant condition
We always generate example apps for >= 5.0.0 (4.2 is not in the matrix).
1 parent db78f3c commit 359779f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

example_app_generator/generate_app.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
gsub_file "Gemfile", /.*gem..sqlite3.*/, "gem 'sqlite3', '~> 1.3.6'"
2727
gsub_file "Gemfile", /.*bootsnap.*/, ""
2828

29-
if Rails::VERSION::STRING >= '5.0.0'
30-
append_to_file('Gemfile', "gem 'rails-controller-testing'\n")
31-
end
29+
append_to_file('Gemfile', "gem 'rails-controller-testing'\n")
3230

3331
if Rails::VERSION::STRING >= '6'
3432
gsub_file "Gemfile", /.*gem..sqlite3.*/, "gem 'sqlite3', '~> 1.4'"

0 commit comments

Comments
 (0)