Skip to content

Commit 30eea60

Browse files
committed
Adding inbox link.
Now you can actually see your messages.
1 parent 27aaf52 commit 30eea60

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

features/messages.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ Feature: Messages
2121
And I go to my messages page
2222
Then I should see "Hello, fela!"
2323
And I should see "From: steve"
24+
Scenario: I should have an inbox link
25+
Given I'm logged in
26+
Then I should see "Inbox"

views/layout.haml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<a href="/forums">Forums</a> \
2525
- if logged_in?
2626
<a href="/hackers/#{current_user.username}">Your Page</a> \
27+
%a{:href => "/messages"} Inbox
2728
<a href="/logout">Log out</a>
2829
- else
2930
<a href="/signup">Sign Up</a> \

0 commit comments

Comments
 (0)