Sha256: fad3785a8d775527cc907f20c8d456ef62756bf2c1de272f1b3bba4dcc8dfb8a
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
Feature: Survey creation As a survey participant I want to take a survey So that I can get paid Scenario: Basic questions Given the survey """ survey "Favorites" do section "Colors" do label "You with the sad eyes don't be discouraged" question_1 "What is your favorite color?", :pick => :one answer "red" answer "blue" answer "green" answer :other q_2b "Choose the colors you don't like", :pick => :any a_1 "orange" a_2 "purple" a_3 "brown" a :omit end end """ When I start the "Favorites" survey And I choose "red" And I choose "blue" And I check "orange" And I check "brown" And I press "Click here to finish" Then there should be 1 response set with 3 responses with: | to_s | | blue | | orange | | brown | Scenario: Default answers Given the survey """ survey "Favorites" do section "Foods" do question_1 "What is your favorite food?" answer :string, :default_value => "beef" end end """ When I start the "Favorites" survey And I press "Click here to finish" Then there should be 1 response set with 1 responses with: | to_s | | clear |
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
surveyor-0.19.1 | features/surveyor.feature |
surveyor-0.19.0 | features/surveyor.feature |