Sha256: d1577c8dbf63a2ff7043d98508f3d04eb963eaccb897ada8188864844406e050
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
require_relative "test_helper" class BrowserScreenshotTest < Test::Unit::TestCase def test_initialize assert_equal( "filepath", BrowserShooter.new( "filepath" ).config_file_path ) end def test_run config_file_path = "#{FIXTURES}/config_simple.yml" BrowserShooter::Configurator.expects( :load_config ).with( config_file_path ).returns( YAML.load_file( config_file_path ) ) BrowserShooter::Driver.expects( :run_script_on_browser).with( "script-one", "browser-one", "/shoots-path" ) BrowserShooter::Driver.expects( :run_script_on_browser).with( "script-one", "browser-two", "/shoots-path" ) BrowserShooter::Driver.expects( :run_script_on_browser).with( "script-one", "browser-three", "/shoots-path" ) BrowserShooter::Driver.expects( :run_script_on_browser).with( "script-two", "browser-one", "/shoots-path" ) BrowserShooter::Driver.expects( :run_script_on_browser).with( "script-two", "browser-two", "/shoots-path" ) BrowserShooter::Driver.expects( :run_script_on_browser).with( "script-two", "browser-three", "/shoots-path" ) BrowserShooter::Util.expects( :export_logs_to_csv ) BrowserShooter.new( config_file_path ).run end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browser_shooter-0.0.5 | test/browser_shooter_test.rb |