Sha256: 18d25f02b0594d81e142562b4662c2ec94cc20868e8799be34a1e5b10cac42c1

Contents?: true

Size: 283 Bytes

Versions: 31

Compression:

Stored size: 283 Bytes

Contents

<% if %w[selenium watir].include?(automation) %>
  def full_url(*page)
    "#{base_url}#{url(*page)}"
  end

  # :reek:UtilityFunction
  def base_url
    YAML.load_file('config/config.yml')['url']
  end

  def url(_page)
    raise 'Url must be defined on child pages'
  end
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ruby_raider-0.9.3 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.9.2 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.9.1 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.9.0 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.8.9 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.8.8 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.8.6 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.8.5 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.8.3 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.8.2 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.8.1 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.8.0 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.7.9 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.7.8 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.7.7 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.7.6 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.7.5 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.7.4 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.7.3 lib/generators/automation/templates/partials/url_methods.tt
ruby_raider-0.7.2 lib/generators/automation/templates/partials/url_methods.tt