Sha256: 90688ddfab280e4fc6439d8b56960755c1d0ea078ba9c9773ab396b90a981a6c

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

module NavigationHelpers
  def path_to(page_name)
    
    'http://localhost:4567' +

    case page_name
    
    when /the index page/
      '/'
    when /the form page/
      '/form'
    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

1 entries across 1 versions & 1 rubygems

Version Path
mechanical-cuke-0.1.0 features/support/paths.rb