Sha256: 9f00bfefcee00ac078dc67d619985184bd48c7d7d5027dadd8e21bf2d3296a54

Contents?: true

Size: 660 Bytes

Versions: 18

Compression:

Stored size: 660 Bytes

Contents

# encoding: utf-8
# You can place files in "<%= lookup('example_directory') %>" and require them here.
# 
# File "file.rb" in "<%= lookup('example_directory') %>" becomes
#
# require 'examples/file'
#
# in your spec.
#
describe '<%= lookup('description') %>' do
<% Array(lookup('proxies')).each do |p| -%>
  context '<%= p[:host] %>:<%= p[:port] %>' do
    before :each do
      use_proxy host: '<%= p[:host] %>', port: <%= p[:port] %>
    end

<% Array(lookup('urls')).each do |url| -%>
    it 'works with <%= url[:uri] %>' do
      visit '<%= url[:uri] %>'
      expect(page).to have_content('<%= url[:content] %>')
    end

<% end -%>
  end

<% end -%>
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
proxy_tester-0.1.10 files/example-test_case.rb.erb
proxy_tester-0.1.8 files/example-test_case.rb.erb
proxy_tester-0.1.6 files/example-test_case.rb.erb
proxy_tester-0.1.5 files/example-test_case.rb.erb
proxy_tester-0.1.4 files/example-test_case.rb.erb
proxy_tester-0.1.3 files/example-test_case.rb.erb
proxy_tester-0.1.2 files/example-test_case.rb.erb
proxy_tester-0.1.1 files/example-test_case.rb.erb
proxy_tester-0.1.0 files/example-test_case.rb.erb
proxy_tester-0.0.9 files/example-test_case.rb.erb
proxy_tester-0.0.8 files/example-test_case.rb.erb
proxy_tester-0.0.7 files/example-test_case.rb.erb
proxy_tester-0.0.6 files/example-test_case.rb.erb
proxy_tester-0.0.5 files/example-test_case.rb.erb
proxy_tester-0.0.4 files/example-test_case.rb.erb
proxy_tester-0.0.3 files/example-test_case.rb.erb
proxy_tester-0.0.2 files/example-test_case.rb.erb
proxy_tester-0.0.1 files/example-test_case.rb.erb