We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f121fb commit 85d6b84Copy full SHA for 85d6b84
2 files changed
features/forum.feature
@@ -1,10 +1,4 @@
1
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"
8
Scenario: View discussions in a forum
9
Given I'm logged in
10
And there's a discussion named "I need help!" in "learning_ruby"
spec/acceptance/forum_spec.rb
@@ -0,0 +1,16 @@
+require File.dirname(__FILE__) + '/acceptance_helper'
+
+feature "Forums" do
+ scenario "can view all of them" do
+ @hacker = Factory(:hacker)
+ log_in @hacker
+ visit "/forums"
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