Sha256: 823bf6b7bf1c861d179cd55d04fd2e984dafff15e8ad7d1ef4b5b222a4245e46

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 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'
    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

5 entries across 5 versions & 1 rubygems

Version Path
simple_pvr-1.0.0 features/support/paths.rb
simple_pvr-0.0.4 features/support/paths.rb
simple_pvr-0.0.3 features/support/paths.rb
simple_pvr-0.0.2 features/support/paths.rb
simple_pvr-0.0.1 features/support/paths.rb