Module: Adva::User::Paths

Defined in:
lib/testing/paths.rb

Instance Method Summary collapse

Instance Method Details

#path_to(page) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/testing/paths.rb', line 2

def path_to(page)
  case page
  when /^the sign in page$/
    new_user_session_path
  when /^the new registration page$/
    new_user_registration_path
  else
    super
  end
end