Sha256: c4a5647d5ab6a1c2a50ccf0d032aafe205d28547c34662647d37590efbc21a37

Contents?: true

Size: 597 Bytes

Versions: 14

Compression:

Stored size: 597 Bytes

Contents

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

  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

14 entries across 14 versions & 1 rubygems

Version Path
watirsplash-0.2.14 templates/common/config.rb
watirsplash-0.2.12 templates/common/config.rb
watirsplash-0.2.11 templates/common/config.rb
watirsplash-0.2.10 templates/common/config.rb
watirsplash-0.2.9 templates/common/config.rb
watirsplash-0.2.8 templates/common/config.rb
watirsplash-0.2.7 templates/common/config.rb
watirsplash-0.2.6 templates/common/config.rb
watirsplash-0.2.5 templates/common/config.rb
watirsplash-0.2.4 templates/common/config.rb
watirsplash-0.2.3 templates/common/config.rb
watirsplash-0.2.2 templates/common/config.rb
watirsplash-0.2.1 templates/common/config.rb
watirsplash-0.2.0 templates/common/config.rb