Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (39 sloc) 1.659 kB
404c48d @bmabey twitter quiz feature
authored
1 Feature: Twitter Quiz
2 In order to encourage audience participation where 90% of the audience is hacking on laptops
3 As a presenter I want audience members
4 To answer certain questions via twitter
5
6 Background: A presentation with a Twitter Quiz
7 Given the following presentation
8 """
9 !TITLE American History
10 !PRESENTER David McCullough
11 # Wanna win a prize?
12 ### You'll have to answer a question...
13 ### in a tweet! First correct tweet wins!
14 !SLIDE
15 # Who shot Alexander Hamilton?
16 ## You must use #free_stuff in your tweet.
6d903cf @bmabey refactor how slides are parsed so new slide keywords can be introduced
authored
17 !DYNAMIC-SLIDE TwitterQuiz '#free_stuff "aaron burr"'
404c48d @bmabey twitter quiz feature
authored
18 !SLIDE
19 Okay, that was fun.
20 Lets actually start now.
21 """
c2e503f @bmabey TwitterQuiz scenario passing, yay!
authored
22 And no tweets have been tweeted that match the '#free_stuff "aaron burr"' search
404c48d @bmabey twitter quiz feature
authored
23
24 Scenario: waiting for an answer
c2e503f @bmabey TwitterQuiz scenario passing, yay!
authored
25 When the presenter goes to the 3rd slide
26 And I go to the 3rd slide
404c48d @bmabey twitter quiz feature
authored
27 Then I should see "And the winner is..."
28 And I should see an ajax spinner
29
30 Scenario: winner is displayed
c2e503f @bmabey TwitterQuiz scenario passing, yay!
authored
31 When the following tweets are tweeted that match the '#free_stuff "aaron burr"' search
fad5385 @bmabey tweet search step and AJAX updating for dynamic slides
authored
32 | From User | Text | Created At |
404c48d @bmabey twitter quiz feature
authored
33 | @adams | Aaron Burr shot Alexander Hamilton #free_stuff" | 1 minute ago |
34 | @jefferson | Aaron Burr shot Alexander Hamilton #free_stuff" | 2 minutes ago |
c2e503f @bmabey TwitterQuiz scenario passing, yay!
authored
35 And the presenter goes to the 3rd slide
36 And I go to the 3rd slide
fad5385 @bmabey tweet search step and AJAX updating for dynamic slides
authored
37 And I wait until the slide is updated
404c48d @bmabey twitter quiz feature
authored
38
39 Then I should see @jefferson's tweet along with his avatar
40
41 @proposed
42 Scenario: fail whale
43
44 @proposed
45 Scenario: network timeout
Something went wrong with that request. Please try again.