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:
parent
5f17a22b5a
commit
d79a6ba514
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue