Sha256: 715263fb86e4a9aa050136a48e319d877273d4b43ff719de189bc9d48bb8ae0b

Contents?: true

Size: 293 Bytes

Versions: 11

Compression:

Stored size: 293 Bytes

Contents

module NavigationHelpers
  def path_to(page_name)
    case page_name
    when "the new album page"
      '/albums/new'
    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

11 entries across 11 versions & 1 rubygems

Version Path
dragonfly-0.6.2 fixtures/files/features/support/paths.rb
dragonfly-0.6.1 fixtures/files/features/support/paths.rb
dragonfly-0.6.0 fixtures/files/features/support/paths.rb
dragonfly-0.5.7 fixtures/files/features/support/paths.rb
dragonfly-0.5.6 fixtures/files/features/support/paths.rb
dragonfly-0.5.5 fixtures/files/features/support/paths.rb
dragonfly-0.5.4 fixtures/files/features/support/paths.rb
dragonfly-0.5.3 fixtures/files/features/support/paths.rb
dragonfly-0.5.2 fixtures/files/features/support/paths.rb
dragonfly-0.5.1 fixtures/files/features/support/paths.rb
dragonfly-0.5.0 fixtures/files/features/support/paths.rb