|
16 | 16 | should_be_on "/" |
17 | 17 | end |
18 | 18 |
|
19 | | - scenario "visit a profile" do |
| 19 | + scenario "have visible profiles" do |
20 | 20 | hacker = Factory(:hacker, :username => "steve") |
21 | 21 | visit "/hackers/steve" |
22 | 22 | page.should have_content "steve's page" |
23 | 23 | end |
24 | 24 |
|
25 | | - scenario "visit your profile" do |
| 25 | + scenario "can't send messages to themselves" do |
26 | 26 | @hacker = Factory(:hacker) |
27 | 27 | log_in @hacker |
28 | 28 |
|
|
32 | 32 | page.should_not have_content "Send steve a message" |
33 | 33 | end |
34 | 34 |
|
35 | | - scenario "follow other hackers" do |
| 35 | + scenario "can follow other hackers" do |
36 | 36 | @fela = Factory(:hacker, :username => "fela") |
37 | 37 |
|
38 | 38 | @steve = Factory(:hacker, :username => "steve") |
|
49 | 49 | page.should have_content "Followers: 1" |
50 | 50 | end |
51 | 51 |
|
52 | | - scenario "sees other followers" do |
| 52 | + scenario "can see followers" do |
53 | 53 | @fela = Factory(:hacker, :username => "fela") |
54 | 54 | @steve = Factory(:hacker, :username => "steve") |
55 | 55 |
|
|
61 | 61 | page.should have_content "steve" |
62 | 62 | end |
63 | 63 |
|
64 | | - scenario "sees others following" do |
| 64 | + scenario "can see others following" do |
65 | 65 | @fela = Factory(:hacker, :username => "fela") |
66 | 66 | @steve = Factory(:hacker, :username => "steve") |
67 | 67 | @steve.follow! @fela |
|
71 | 71 | page.should have_content "fela" |
72 | 72 | end |
73 | 73 |
|
74 | | - scenario "unfollowing a hacker" do |
| 74 | + scenario "can unfollow other hackers" do |
75 | 75 | @steve = Factory(:hacker, :username => "steve") |
76 | 76 | log_in @steve |
77 | 77 |
|
|
0 commit comments