1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

Fix test failures from warnings

* Some machines print warnings to stderr from plugins
* We can't silence these warnings and the tests fail
* Tests now look for a specific string instead of any output
This commit is contained in:
Joe Ferris 2013-02-15 11:48:45 -05:00
parent 5f17a22b5a
commit d79a6ba514

View file

@ -2107,15 +2107,17 @@ describe Capybara::Webkit::Driver do
describe "logger app" do describe "logger app" do
it "logs nothing before turning on the logger" do it "logs nothing before turning on the logger" do
visit("/") visit("/")
log.should == "" log.should_not include logging_message
end end
it "logs its commands after turning on the logger" do it "logs its commands after turning on the logger" do
driver.enable_logging driver.enable_logging
visit("/") visit("/")
log.should_not == "" log.should include logging_message
end end
let(:logging_message) { 'Wrote response true' }
let(:driver) do let(:driver) do
connection = Capybara::Webkit::Connection.new(:stderr => output) connection = Capybara::Webkit::Connection.new(:stderr => output)
browser = Capybara::Webkit::Browser.new(connection) browser = Capybara::Webkit::Browser.new(connection)