Sha256: 197b2562880a54a60ca29bb35dc5766fdeebfdfd3d0ac759d0c03cc5e9aa7338

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

module NavigationHelpers
  def path_to(page_name)
    case page_name
    
    when /the homepage/
      root_path
    
    # Add more page name => path mappings here
    
    else
      raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
        "Now, go and add a mapping in features/support/paths.rb"
    end
  end
end

World do |world|
  world.extend NavigationHelpers
  world
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.2.3.1 rails_generators/cucumber/templates/paths.rb
aslakhellesoy-cucumber-0.2.3 rails_generators/cucumber/templates/paths.rb
fcoury-cucumber-0.2.3.1 rails_generators/cucumber/templates/paths.rb
cucumber-0.2.3 rails_generators/cucumber/templates/paths.rb