Skip to content

Instantly share code, notes, and snippets.

@guilleiguaran
Created July 1, 2011 17:04
Show Gist options
  • Save guilleiguaran/1058957 to your computer and use it in GitHub Desktop.
Save guilleiguaran/1058957 to your computer and use it in GitHub Desktop.
module NavigationHelpers
# Put helper methods related to the paths in your application here.
def homepage
"/"
end
def tour_page
"/tour"
end
def contact_page
"/contact"
end
def club_page(club)
"/clubs/#{club.id}"
end
def sign_in_page
"/users/sign_in"
end
end
RSpec.configuration.include NavigationHelpers, :type => :request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment