File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Feature : 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"
Original file line number Diff line number Diff line change 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+
5264end
You can’t perform that action at this time.
0 commit comments