Skip to content

Commit 58748f7

Browse files
committed
sees others following
1 parent 131736c commit 58748f7

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

features/hacker.feature

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
Feature: Hacker management
2-
Scenario: Seeing Following
3-
Given there's a hacker with the username "steve"
4-
And there's a hacker with the username "fela"
5-
And the hacker "steve" is following the hacker "fela"
6-
When I go to the hacker page for "steve"
7-
And I follow "1"
8-
Then I should see "fela"
92
Scenario: Unfollowing a Hacker
103
Given I'm logged in as "steve"
114
And there's a hacker with the username "fela"

spec/acceptance/hacker_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,14 @@
6161
page.should have_content "steve"
6262
end
6363

64+
scenario "sees others following" do
65+
@fela = Factory(:hacker, :username => "fela")
66+
@steve = Factory(:hacker, :username => "steve")
67+
@steve.follow! @fela
68+
69+
visit "/hackers/steve"
70+
click_link "1"
71+
page.should have_content "fela"
72+
end
73+
6474
end

0 commit comments

Comments
 (0)