Sha256: b20a6163122f7fddc5b261f533194b5ff14636de759a54964d142b4180e76ed5

Contents?: true

Size: 618 Bytes

Versions: 11

Compression:

Stored size: 618 Bytes

Contents

=begin
  Global configuration constants
  For example, you can use the URL constant below from your projects like this:

  In your projects' config.rb:

  module Config
    module Application
      URL = Config.full_url("my_subpage/index.html") # => equals "http://localhost/my_subpage/index.html
    end
  end
=end

require "uri"

module Config
  module GlobalApplication
    URL = "http://localhost"
  end

  def Config.full_url relative_url
    URI.join(GlobalApplication::URL, relative_url).to_s
  end
end

Spec::Runner.configure do |config|
  config.include(CommonApplicationHelper)
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
watirspec-0.1.9.1 templates/common/config.rb
watirsplash-0.1.9 templates/common/config.rb
watirspec-0.1.8 templates/common/config.rb
watirspec-0.1.7 templates/common/config.rb
watirspec-0.1.6 templates/common/config.rb
watirspec-0.1.5 templates/common/config.rb
watirspec-0.1.4 templates/common/config.rb
watirspec-0.1.3 templates/common/config.rb
watirspec-0.1.2 templates/common/config.rb
watirspec-0.1.1 templates/common/config.rb
watirspec-0.1.0 templates/common/config.rb