Sha256: 58dfac8bc78251cbf55c09e95ebfc12ae63247447ae46b705e0869567119a59a
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
module NavigationHelpers def path_to(page_name) 'http://localhost:4567' + case page_name when /the index page/ '/' when /the form page/ '/form' when /the table page/ '/table' when /the upload page/ '/upload' 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(NavigationHelpers)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mechanical-cuke-0.3.0 | features/support/paths.rb |
mechanical-cuke-0.2.0 | features/support/paths.rb |