Skip to content

Instantly share code, notes, and snippets.

View patricksrobertson's full-sized avatar

Patrick Robertson patricksrobertson

View GitHub Profile
describe "GET /users" do
it "lists users if you are logged in" do
user1 = Factory(:user, name: "Elliot Stabler")
user2 = Factory(:user, name: "Olivia Benson")
login_user(user1)
login_user(user2)
visit users_path
page.should_have content(user1.name)
Background:
Given the following user:
| first name | last name | email |
| Fred | Friend | [email protected] |
Scenario: I follow a User from their profile
Given I am logged in
When I go to the profile page for "[email protected]"
And I press "Follow"
Then I should be following "Fred Friend"
@patricksrobertson
patricksrobertson / Questions
Created August 9, 2011 15:42
Frozen Rails Give-away
Day job: Senior Developer at Velir
Your Rails contributions (if any): Maintainer of an official rails plugin, bug reports
What's your Ruby/Rail experience?: I have been using Rails since 2004.
How do you use GitHub?: I use GitHub for all my professional work & personal Ruby work, and use it to contribute/maintain open source project I participate in.