Skip to content

Commit

Permalink
fixup! Make puma log silence completely
Browse files Browse the repository at this point in the history
  • Loading branch information
ta1kt0me committed Jul 17, 2018
1 parent 94a6919 commit 1a48c76
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion features/system_specs/system_specs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Feature: System spec


@system_test
Scenario: System specs
Scenario: System specs driven by rack_test
Given a file named "spec/system/widget_system_spec.rb" with:
"""ruby
require "rails_helper"
Expand All @@ -33,3 +33,29 @@ Feature: System spec
When I run `rspec spec/system/widget_system_spec.rb`
Then the exit status should be 0
And the output should contain "1 example, 0 failures"

@system_test
Scenario: System specs driven by selenium_chrome_headless
Given a file named "spec/system/widget_system_spec.rb" with:
"""ruby
require "rails_helper"
RSpec.describe "Widget management", :type => :system do
before do
driven_by(:selenium_chrome_headless)
end
it "enables me to create widgets" do
visit "/widgets/new"
fill_in "Name", :with => "My Widget"
click_button "Create Widget"
expect(page).to have_text("Widget was successfully created.")
end
end
"""
When I run `rspec spec/system/widget_system_spec.rb`
Then the exit status should be 0
And the output should contain "1 example, 0 failures"
And the output should not contain "Puma starting"

0 comments on commit 1a48c76

Please sign in to comment.