Sha256: a38d39d2277401efe3dddc18ec8ba2196e22fcda19d75ed811b5edb235a63646

Contents?: true

Size: 371 Bytes

Versions: 16

Compression:

Stored size: 371 Bytes

Contents

module NavigationHelpers
  def path_to(page_name)
    case page_name
    when "the new album page"
      '/albums/new'
    when /^the image for text "(.+)", size "(.+)"$/
      "/text/#{$1}/#{$2}"
    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

16 entries across 16 versions & 2 rubygems

Version Path
dragonfly-0.8.6 fixtures/files/features/support/paths.rb
dragonfly-0.8.5 fixtures/files/features/support/paths.rb
dragonfly-0.8.4 fixtures/files/features/support/paths.rb
fog-dragonfly-0.8.2 fixtures/files/features/support/paths.rb
dragonfly-0.8.2 fixtures/files/features/support/paths.rb
fog-dragonfly-0.8.1 fixtures/files/features/support/paths.rb
dragonfly-0.8.1 fixtures/files/features/support/paths.rb
dragonfly-0.8.0 fixtures/files/features/support/paths.rb
dragonfly-0.7.7 fixtures/files/features/support/paths.rb
dragonfly-0.7.6 fixtures/files/features/support/paths.rb
dragonfly-0.7.5 fixtures/files/features/support/paths.rb
dragonfly-0.7.4 fixtures/files/features/support/paths.rb
dragonfly-0.7.3 fixtures/files/features/support/paths.rb
dragonfly-0.7.2 fixtures/files/features/support/paths.rb
dragonfly-0.7.1 fixtures/files/features/support/paths.rb
dragonfly-0.7.0 fixtures/files/features/support/paths.rb