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_ruby-3.5.11 spec/sauce/file_detector_spec.rb
sauce_ruby-3.5.10 spec/sauce/file_detector_spec.rb
sauce_ruby-3.5.9 spec/sauce/file_detector_spec.rb
sauce_ruby-3.5.8 spec/sauce/file_detector_spec.rb
sauce_ruby-3.5.7 spec/sauce/file_detector_spec.rb
sauce_ruby-3.5.6 spec/sauce/file_detector_spec.rb
sauce-3.5.6 spec/sauce/file_detector_spec.rb
sauce-3.5.5 spec/sauce/file_detector_spec.rb
sauce-3.5.4 spec/sauce/file_detector_spec.rb
sauce-3.5.3 spec/sauce/file_detector_spec.rb
sauce-3.5.2 spec/sauce/file_detector_spec.rb
sauce-3.5.1 spec/sauce/file_detector_spec.rb
sauce-3.5.0 spec/sauce/file_detector_spec.rb
sauce-3.4.9 spec/sauce/file_detector_spec.rb
sauce-3.4.8 spec/sauce/file_detector_spec.rb
sauce-3.4.7 spec/sauce/file_detector_spec.rb
sauce-3.4.6 spec/sauce/file_detector_spec.rb
sauce-3.4.5 spec/sauce/file_detector_spec.rb
sauce-3.4.4 spec/sauce/file_detector_spec.rb
sauce-3.4.3 spec/sauce/file_detector_spec.rb