Skip to content

Commit 131736c

Browse files
committed
hackers seeing followers
1 parent ac029d5 commit 131736c

2 files changed

Lines changed: 12 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 Followers
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 "fela"
7-
And I follow "1"
8-
Then I should see "steve"
92
Scenario: Seeing Following
103
Given there's a hacker with the username "steve"
114
And there's a hacker with the username "fela"

spec/acceptance/hacker_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,16 @@
4949
page.should have_content "Followers: 1"
5050
end
5151

52+
scenario "sees other followers" do
53+
@fela = Factory(:hacker, :username => "fela")
54+
@steve = Factory(:hacker, :username => "steve")
55+
56+
@steve.follow! @fela
57+
58+
visit "/hackers/fela"
59+
60+
click_link "1"
61+
page.should have_content "steve"
62+
end
63+
5264
end

0 commit comments

Comments
 (0)