Sha256: 8062091380070e7970fe52c388fa64816903e74052acb1b0ccfd217ba73edeaa

Contents?: true

Size: 530 Bytes

Versions: 14

Compression:

Stored size: 530 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe 'Reference Domain Matcher' do
  it 'checks if a site references a given list of domains' do
    domains = [
      'example.org',
    ]

    use_proxy 'localhost:3128'
    visit('http://example.org')

    expect(page).to reference_domains domains
  end

  it 'checks if a site not references a given list of domains' do
    domains = [
      'asdf',
    ]

    use_proxy 'localhost:3128'
    visit('http://example.org')

    expect(page).not_to reference_domains domains
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
proxy_tester-0.1.10 spec/matchers/reference_domains_spec.rb
proxy_tester-0.1.8 spec/matchers/reference_domains_spec.rb
proxy_tester-0.1.6 spec/matchers/reference_domains_spec.rb
proxy_tester-0.1.5 spec/matchers/reference_domains_spec.rb
proxy_tester-0.1.4 spec/matchers/reference_domains_spec.rb
proxy_tester-0.1.3 spec/matchers/reference_domains_spec.rb
proxy_tester-0.1.2 spec/matchers/reference_domains_spec.rb
proxy_tester-0.1.1 spec/matchers/reference_domains_spec.rb
proxy_tester-0.1.0 spec/matchers/reference_domains_spec.rb
proxy_tester-0.0.9 spec/matchers/reference_domains_spec.rb
proxy_tester-0.0.8 spec/matchers/reference_domains_spec.rb
proxy_tester-0.0.7 spec/matchers/reference_domains_spec.rb
proxy_tester-0.0.6 spec/matchers/reference_domains_spec.rb
proxy_tester-0.0.5 spec/matchers/reference_domains_spec.rb