Permalink
Browse files

Extract background for reader subscriptions

  • Loading branch information...
1 parent 9912048 commit 74c0b11a1463afdbd55bd93512aa90879e8c08b0 @martinisoft committed Mar 1, 2012
@@ -3,16 +3,16 @@ Feature: Reader subscriptions
I would like to subscribe to comics
So that I can read comics I am interested in seeing
- Scenario: Reader subscribes
+ Background:
Given I am signed in as a reader
- And there is a comic to subscribe to
+ And there is a subscribable comic
+
+ Scenario: Reader subscribes
When I subscribe to that comic
Then I see that comic in my personal feed
Scenario: Reader unsubscribes
- Given I am signed in as a reader
- And there is a comic to subscribe to
- And I subscribe to that comic
+ Given I subscribe to that comic
When I unsubscribe from that comic
Then I don't see that comic in my personal feed
And I can subscribe to that comic again
@@ -5,7 +5,7 @@
step "I am logged in as a confirmed user"
end
- step "there is a comic to subscribe to" do
+ step "there is a subscribable comic" do
@comic = Fabricate :comic
end

0 comments on commit 74c0b11

Please sign in to comment.