Sha256: d1d169362cd4b225bae99b274b85cb95fccd87851fa5309c77d4972cb08b6be0

Contents?: true

Size: 430 Bytes

Versions: 28

Compression:

Stored size: 430 Bytes

Contents

require "spec_helper"

describe Sauce::Selenium2 do
  describe "#file_detector" do
    it "should return the path of files when they exist" do
      Selenium::WebDriver::Remote::Bridge.any_instance.stub(:create_session).and_return({})

      path = __FILE__

      client = Sauce::Selenium2.new()
      bridge = client.driver.instance_variable_get(:@bridge)
      bridge.file_detector.call([path]).should eq path
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
sauce-3.4.2 spec/sauce/file_detector_spec.rb
sauce-3.4.1 spec/sauce/file_detector_spec.rb
sauce-3.4.0 spec/sauce/file_detector_spec.rb
sauce-3.3.2 spec/sauce/file_detector_spec.rb
sauce-3.3.1 spec/sauce/file_detector_spec.rb
sauce-3.3.0 spec/sauce/file_detector_spec.rb
sauce-3.2.0 spec/sauce/file_detector_spec.rb
sauce-3.1.3 spec/sauce/file_detector_spec.rb