Sha256: c176c19c1ae87b2fe581ba618839a8413faa8dd14433c077556c3afb11900b29

Contents?: true

Size: 668 Bytes

Versions: 11

Compression:

Stored size: 668 Bytes

Contents

require 'spec_helper'

describe Geckodriver::Helper do
  let(:helper) { Geckodriver::Helper.new }

  describe '#binary_path' do
    context 'on a linux platform' do
      before { allow(helper).to receive(:platform) { 'linux32' } }
      it { expect(helper.binary_path).to match(/geckodriver$/) }
    end

    context 'on a mac platform' do
      before { allow(helper).to receive(:platform) { 'mac' } }
      it { expect(helper.binary_path).to match(/geckodriver$/) }
    end

    context 'on a windows platform' do
      before { allow(helper).to receive(:platform) { 'win' } }
      it { expect(helper.binary_path).to match(/geckodriver\.exe$/) }
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
geckodriver-helper-custom-0.2.0 spec/helper_spec.rb
geckodriver-helper-0.0.5 spec/helper_spec.rb
geckodriver-helper-custom-0.1.2 spec/helper_spec.rb
geckodriver-helper-0.0.4 spec/helper_spec.rb
geckodriver-helper-custom-0.1.1 spec/helper_spec.rb
geckodriver-helper-custom-0.1.0 spec/helper_spec.rb
geckodriver-helper-custom-0.0.2 spec/helper_spec.rb
geckodriver-helper-custom-0.0.1 spec/helper_spec.rb
geckodriver-helper-0.0.3 spec/helper_spec.rb
geckodriver-helper-0.0.2 spec/helper_spec.rb
geckodriver-helper-0.0.1 spec/helper_spec.rb