Sha256: 24f7fb6c8c26cc1527a0e69d4d0d7a110871c42fd6bb7a3716f75d4549f1d2a8

Contents?: true

Size: 1021 Bytes

Versions: 14

Compression:

Stored size: 1021 Bytes

Contents

require 'watirspec_helper'

describe WatirSpec::Implementation do
  before { @impl = WatirSpec::Implementation.new }

  it 'finds matching guards' do
    guards = {
      [:firefox] => [
        {name: :not_compliant, data: {file: './spec/watirspec/div_spec.rb:108'}},
        {name: :deviates,      data: {file: './spec/watirspec/div_spec.rb:114'}},
        {name: :not_compliant, data: {file: './spec/watirspec/div_spec.rb:200'}},
        {name: :bug,           data: {file: './spec/watirspec/div_spec.rb:228', key: 'WTR-350'}}
      ],
      [:chrome] => [
        {name: :not_compliant, data: {file: './spec/watirspec/div_spec.rb:109'}},
        {name: :deviates,      data: {file: './spec/watirspec/div_spec.rb:115'}},
        {name: :not_compliant, data: {file: './spec/watirspec/div_spec.rb:201'}},
        {name: :bug,           data: {file: './spec/watirspec/div_spec.rb:229', key: 'WTR-349'}}
      ]
    }
    @impl.name = :firefox
    expect(@impl.matching_guards_in(guards)).to eq(guards.first[1])
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
watir-7.0.0.beta1 spec/implementation_spec.rb
watir-6.19.1 spec/implementation_spec.rb
watir-6.19.0 spec/implementation_spec.rb
watir-6.18.0 spec/implementation_spec.rb
watir-6.17.0 spec/implementation_spec.rb
watir-6.16.5 spec/implementation_spec.rb
watir-6.16.4 spec/implementation_spec.rb
watir-6.16.3 spec/implementation_spec.rb
watir-6.16.2 spec/implementation_spec.rb
watir-6.16.1 spec/implementation_spec.rb
watir-6.16.0 spec/implementation_spec.rb
watir-6.15.1 spec/implementation_spec.rb
watir-6.15.0 spec/implementation_spec.rb
watir-6.14.0 spec/implementation_spec.rb