Sha256: be7a6e82b0c2f9de65903f7ca1b17742b07cdcbad1c916146fb5f7b735b2a7db

Contents?: true

Size: 690 Bytes

Versions: 1

Compression:

Stored size: 690 Bytes

Contents

require_relative "test_helper"

class ConfiguratorTest < Test::Unit::TestCase
  def test_load_config
    BrowserShooter::Configurator.expects( :timestamp ).returns( "timestamp" )
    FileUtils.expects( :mkdir_p ).with( "/shoots-path/timestamp" )
    FileUtils.expects( :mkdir ).with( "/shoots-path/timestamp/shots" )
    FileUtils.expects( :mkdir ).with( "/shoots-path/timestamp/logs" )

    config = BrowserShooter::Configurator.load_config( "#{FIXTURES}/config_simple.yml" )

    assert_equal( "/shoots-path/timestamp", config["output_path"] )
    assert_equal( "script-one", config["scripts"]["script-one"] )
    assert_equal( "browser-one", config["browsers"]["browser-one"] )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
browser_shooter-0.0.5 test/configurator_test.rb