We tend to use describe() for things and context() for context
RSpec book
- wrap a set of tests 'against one functionality'
# Cheatsheet for using mechanize | |
require 'mechanize' | |
# Initialize Mechanize Agent | |
agent = Mechanize.new | |
agent.get 'http://localhost:3000/' | |
# Click on a link displayed on the page | |
agent.page.link_with(text: "Sign in").click |