Sha256: 4acd21f1db2f96d4ee3abfb3414d9279dfe74525851bf3fd76a2d66f53db8d77
Contents?: true
Size: 497 Bytes
Versions: 17
Compression:
Stored size: 497 Bytes
Contents
module NavigationHelpers # Maps a name to a path. Used by the # # When /^I go to (.+)$/ do |page_name| # # step definition in webrat_steps.rb # def path_to(page_name) case page_name when /the homepage/ '/' when /request a newsletter/ "/newsletter/Joe Someone/example@example.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(NavigationHelpers)
Version data entries
17 entries across 17 versions & 5 rubygems