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