From 1a48c769d239ec8ff6b4ebd725198e6a11b28df1 Mon Sep 17 00:00:00 2001 From: ta1kt0me Date: Tue, 17 Jul 2018 23:42:57 +0900 Subject: [PATCH] fixup! Make puma log silence completely --- features/system_specs/system_specs.feature | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/features/system_specs/system_specs.feature b/features/system_specs/system_specs.feature index b81933960c..78eff75854 100644 --- a/features/system_specs/system_specs.feature +++ b/features/system_specs/system_specs.feature @@ -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" @@ -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"