Test for AsynchronousCloseException text when done running
This commit is contained in:
parent
da13973bae
commit
dc1a151664
|
@ -29,6 +29,8 @@ matrix:
|
||||||
env: QMAKE=/usr/lib/x86_64-linux-gnu/qt4/bin/qmake
|
env: QMAKE=/usr/lib/x86_64-linux-gnu/qt4/bin/qmake
|
||||||
- rvm: 2.3.3
|
- rvm: 2.3.3
|
||||||
gemfile: gemfiles/master.gemfile
|
gemfile: gemfiles/master.gemfile
|
||||||
|
- rvm: jruby-9.1.8.0
|
||||||
|
gemfile: Gemfile
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- gemfile: gemfiles/master.gemfile
|
- gemfile: gemfiles/master.gemfile
|
||||||
gemfile:
|
gemfile:
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
# require 'selenium-webdriver'
|
||||||
|
|
||||||
|
RSpec.describe Capybara::Webkit::Driver do
|
||||||
|
it "should exit with a zero exit status" do
|
||||||
|
browser = Capybara::Webkit::Driver.new(TestApp).browser
|
||||||
|
expect(true).to eq(true)
|
||||||
|
end
|
||||||
|
end
|
|
@ -25,6 +25,12 @@ describe Capybara::Webkit::Connection do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "shouldn't output extraneous warnings when exiting", skip_on_windows: true do
|
||||||
|
output_str, status = Open3.capture2e("rspec spec/fixtures/exit_text.rb")
|
||||||
|
expect(status.exitstatus).to eq(0)
|
||||||
|
expect(output_str).not_to include("AsynchronousCloseException")
|
||||||
|
end
|
||||||
|
|
||||||
it "raises an error if the server has stopped", skip_on_windows: true do
|
it "raises an error if the server has stopped", skip_on_windows: true do
|
||||||
path = "false"
|
path = "false"
|
||||||
stub_const("Capybara::Webkit::Server::SERVER_PATH", path)
|
stub_const("Capybara::Webkit::Server::SERVER_PATH", path)
|
||||||
|
|
Loading…
Reference in New Issue