Sha256: bf48389d46150a3ba4b438404a02b5e4f5997199a285e9860a17d6bb279bac70
Contents?: true
Size: 603 Bytes
Versions: 12
Compression:
Stored size: 603 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 welcome page/ welcome_path when /the pages index page/ admin_pages_path when /the layouts index page/ admin_layouts_path when /the snippets index page/ admin_snippets_path 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
12 entries across 12 versions & 1 rubygems