module Selenium
  module WebDriver
    module Firefox

      describe Driver do
        it "should accept an array of custom command line switches" do
          begin
            driver = Selenium::WebDriver.for :chrome, :switches => ["--disable-translate"]
          ensure
            driver.quit if driver
          end
        end

        it "should raise ArgumentError if :switches is not an Array" do
          lambda {
            Selenium::WebDriver.for(:chrome, :switches => "--foo")
          }.should raise_error(ArgumentError)
        end
      end

    end # Chrome
  end # WebDriver
end # Selenium


Add missing file from last commit.
JariBakken: Add missing file from last commit.

git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@12313 07704840-8298-11de-bf8c-fd130f914ac9
