This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |