Sha256: 6b76b93b947129e62ef97c6dbfcb2a33ac47cbd5a977793399ec2717121cb5c5

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

module NavigationHelpers
  def path_to(page_name)
    case page_name
    when 'the schedules page'
      '/'
    when 'the channel overview page'
      '/channels'
    when 'the status page'
      '/status'
    when 'the shows page'
      '/shows'
    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
simple_pvr-1.1.0 features/support/paths.rb