mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
hide output of exit code sub tests
This commit is contained in:
parent
bb731c616c
commit
590ea2bc46
1 changed files with 2 additions and 2 deletions
|
@ -43,14 +43,14 @@ RSpec.shared_examples "Capybara::Session" do |session, mode|
|
|||
it "should have return code 1 when running selenium_driver_rspec_failure.rb" do
|
||||
env = { 'SELENIUM_BROWSER' => @session.driver.options[:browser].to_s,
|
||||
'LEGACY_FIREFOX' => (mode == :selenium_firefox ? 'TRUE' : nil) }
|
||||
system(env, 'rspec spec/fixtures/selenium_driver_rspec_failure.rb')
|
||||
system(env, 'rspec spec/fixtures/selenium_driver_rspec_failure.rb', out: File::NULL, err: File::NULL)
|
||||
expect($?.exitstatus).to eq(1)
|
||||
end
|
||||
|
||||
it "should have return code 0 when running selenium_driver_rspec_success.rb" do
|
||||
env = { 'SELENIUM_BROWSER' => @session.driver.options[:browser].to_s,
|
||||
'LEGACY_FIREFOX' => (mode == :selenium_firefox ? 'TRUE' : nil) }
|
||||
system(env, 'rspec spec/fixtures/selenium_driver_rspec_success.rb')
|
||||
system(env, 'rspec spec/fixtures/selenium_driver_rspec_success.rb', out: File::NULL, err: File::NULL)
|
||||
expect($?.exitstatus).to eq(0)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue