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