Sha256: d53b1b75b360348cb8dbe78cee4c8136b4c06f3e666062dfaab97a7553e9f437
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 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 YourApplication URL = Config.full_url("my_subpage/index.html") # => "http://localhost/my_subpage/index.html end end =end require "uri" module Config module GlobalApplication URL = <%= %Q["#{url}"] %> end def Config.full_url relative_url URI.join(GlobalApplication::URL, relative_url).to_s end end RSpec.configure do |config| config.include(CommonApplicationHelper) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watirsplash-1.0.0 | lib/watirsplash/generators/templates/new_common_project/config.rb.tt |