Skip to content

Commit 85d6b84

Browse files
committed
I can see the forums!
1 parent 4f121fb commit 85d6b84

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

features/forum.feature

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
Feature: The Hackety Forum
2-
Scenario: View all forums
3-
Given I'm logged in
4-
When I go to the forums
5-
Then I should see "Learning Ruby"
6-
And I should see "Hackety Help"
7-
And I should see "Clubhouse"
82
Scenario: View discussions in a forum
93
Given I'm logged in
104
And there's a discussion named "I need help!" in "learning_ruby"

spec/acceptance/forum_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
require File.dirname(__FILE__) + '/acceptance_helper'
2+
3+
feature "Forums" do
4+
5+
scenario "can view all of them" do
6+
@hacker = Factory(:hacker)
7+
log_in @hacker
8+
9+
visit "/forums"
10+
11+
page.should have_content "Learning Ruby"
12+
page.should have_content "Hackety Help"
13+
page.should have_content "Clubhouse"
14+
end
15+
16+
end

0 commit comments

Comments
 (0)