1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00
teampoltergeist--poltergeist/spec/unit/driver_spec.rb
Jon Leighton 76fe32debd omg
2011-10-27 23:34:14 +01:00

29 lines
645 B
Ruby

require 'spec_helper'
module Capybara::Poltergeist
describe Driver do
context 'with no options' do
subject { Driver.new(nil) }
it 'should not log' do
subject.logger.should == nil
end
end
context 'with a :logger option' do
subject { Driver.new(nil, :logger => :my_custom_logger) }
it 'should log to the logger given' do
subject.logger.should == :my_custom_logger
end
end
context 'with a :debug => true option' do
subject { Driver.new(nil, :debug => true) }
it 'should log to STDERR' do
subject.logger.should == STDERR
end
end
end
end