Sha256: 86f4abf7071ddecf96b92a714507896517a3715a625f3b6491c21492d01dead0

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

module NavigationHelpers
  # Maps a name to a path. Used by the
  #
  #   When /^I go to (.+)$/ do |page_name|
  #
  # step definition in web_steps.rb
  #
  def path_to(page_name)
    case page_name

    when /the sign in page/
      new_user_session_path
    when /the users admin page/
      admin_users_path
    end
  end
end

World(NavigationHelpers)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
noodall-devise-0.1.5 features/support/paths.rb
noodall-devise-0.1.4 features/support/paths.rb
noodall-devise-0.1.3 features/support/paths.rb
noodall-devise-0.1.2 features/support/paths.rb
noodall-devise-0.1.1 features/support/paths.rb
noodall-devise-0.1.0 features/support/paths.rb
noodall-devise-0.0.1 features/support/paths.rb