Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make puma log silence completely #2289

Merged
merged 8 commits into from Mar 17, 2020
Merged

Make puma log silence completely #2289

merged 8 commits into from Mar 17, 2020

Conversation

benoittgt
Copy link
Member

Continue #2011

ta1kt0me and others added 6 commits March 16, 2020 15:53
Avoid:

1) Widget management enables me to create widgets
   Failure/Error: raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}"

   ActionController::RoutingError:
     No route matches [GET] "/stylesheets/application.css"
@@ -197,12 +198,13 @@ namespace :no_active_record do
sh "bundle binstubs railties" unless File.exist?("bin/rails")

application_file = File.read("config/application.rb")
application_file.gsub!("config.assets.enabled = true", "config.assets.enabled = false")
application_file.gsub!('# require "sprockets/railtie"', 'require "sprockets/railtie"')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I felt quite dirty to do this.

@benoittgt benoittgt marked this pull request as ready for review March 16, 2020 23:42
@benoittgt benoittgt requested review from JonRowe and pirj and removed request for JonRowe March 16, 2020 23:46
Changelog.md Outdated
@@ -7,6 +7,7 @@ Enhancements:
* The scaffold generator now generates request specs in preference to controller specs.
(Luka Lüdicke, #2288)
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
* Remove Puma log when running system specs. (ta1kt0me, Benoit Tigeot, #2011)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I reference this one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Member

@JonRowe JonRowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with this when the changelog points to this PR.

Changelog.md Outdated Show resolved Hide resolved
Co-Authored-By: Jon Rowe <hello@jonrowe.co.uk>
@benoittgt benoittgt merged commit 84e7925 into master Mar 17, 2020
@benoittgt benoittgt deleted the silence_puma branch March 17, 2020 12:23
@JonRowe JonRowe restored the silence_puma branch March 24, 2020 20:56
@JonRowe JonRowe deleted the silence_puma branch March 24, 2020 20:57
JonRowe added a commit that referenced this pull request Mar 24, 2020
Co-Authored-By: Jon Rowe <hello@jonrowe.co.uk>
JonRowe added a commit that referenced this pull request Mar 24, 2020
tagliala added a commit to diowa/ruby3-rails6-bootstrap-heroku that referenced this pull request Aug 19, 2021
Fixed in version 4.0.0 of rspec-rails by rspec/rspec-rails#2289
cpjmcquillan added a commit to cpjmcquillan/suspenders that referenced this pull request May 18, 2023
Capybara was configured to silence Puma in thoughtbot#981 to prevent Puma startup messages
being output when running specs with `js: true`.

This configuration has since been updated in
[rspec-rails](rspec/rspec-rails#2289), so we can remove
it here.
stevepolitodesign pushed a commit to thoughtbot/suspenders that referenced this pull request May 27, 2023
Capybara was configured to silence Puma in #981 to prevent Puma startup messages
being output when running specs with `js: true`.

This configuration has since been updated in
[rspec-rails](rspec/rspec-rails#2289), so we can remove
it here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants