Sha256: deb359610e7f557a801846370075304dff4233289078ef279b1071419a5656fc
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
module Paths def path_to(page_name) case page_name # @environment comes from env.rb where it is set to "http://" #Test any external site when /the google home page/i @environment + "google.com" when /the watircuke page/i @environment + "richdownie.com/watircuke" #Test any of your local apps when /the localhost page/i @environment + "localhost:3000" #Test any of your local apps on passenger when /the passenger page/i @environment + "richdownie1.local/watircuke" when /the youtube page/i @environment + "youtube.com" else raise "Can't find mapping from \"#{page_name}\" to a path.\n" + "Now, go and add a mapping in #{__FILE__}" end end end World(Paths)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watircuke-0.0.1 | features/support/paths.rb |