|
16 | 16 | :welcome, |
17 | 17 | :kitchen_code, |
18 | 18 | :taste_test, |
19 | | - :taste_wrong, |
20 | | - :taste_gave_up, |
| 19 | + :taste_retry, |
| 20 | + :taste_reveal, |
21 | 21 | :taste_terrible, |
22 | 22 | :dino_nuggets, |
23 | 23 | :promoted |
|
28 | 28 | expect(scenario.dialogue_flow[:welcome]).to eq("flavortown/01_welcome") |
29 | 29 | expect(scenario.dialogue_flow[:kitchen_code]).to eq("flavortown/02_kitchen_code") |
30 | 30 | expect(scenario.dialogue_flow[:taste_test]).to eq("flavortown/03_taste_test") |
31 | | - expect(scenario.dialogue_flow[:taste_wrong]).to eq("flavortown/03b_taste_wrong") |
32 | | - expect(scenario.dialogue_flow[:taste_gave_up]).to eq("flavortown/03c_taste_incredibly_wrong") |
| 31 | + expect(scenario.dialogue_flow[:taste_retry]).to eq("flavortown/03b_taste_retry") |
| 32 | + expect(scenario.dialogue_flow[:taste_reveal]).to eq("flavortown/03c_taste_reveal") |
33 | 33 | expect(scenario.dialogue_flow[:taste_terrible]).to eq("flavortown/03d_taste_terrible") |
34 | 34 | expect(scenario.dialogue_flow[:dino_nuggets]).to eq("flavortown/03e_dino_nuggets") |
35 | 35 | expect(scenario.dialogue_flow[:promoted]).to eq("flavortown/04_promoted") |
|
59 | 59 | end |
60 | 60 |
|
61 | 61 | context "wrong answers" do |
62 | | - it "goes to taste_wrong on first wrong answer" do |
63 | | - expect(scenario.handle_action("flavortown_taste_wrong_w0")).to eq(:taste_wrong) |
| 62 | + it "goes to taste_retry on first wrong answer" do |
| 63 | + expect(scenario.handle_action("flavortown_retry_w0")).to eq(:taste_retry) |
64 | 64 | end |
65 | 65 |
|
66 | | - it "allows retry from taste_wrong" do |
67 | | - expect(scenario.handle_action("flavortown_try_again")).to eq(:taste_test) |
| 66 | + it "allows retry from scolding screens" do |
| 67 | + expect(scenario.handle_action("flavortown_try_again")).to eq(:taste_retry) |
68 | 68 | end |
69 | 69 |
|
70 | | - it "gives up after second wrong answer" do |
71 | | - expect(scenario.handle_action("flavortown_taste_wrong_again_w0")).to eq(:taste_gave_up) |
| 70 | + it "reveals answer after second wrong answer" do |
| 71 | + expect(scenario.handle_action("flavortown_final_w0")).to eq(:taste_reveal) |
72 | 72 | end |
73 | 73 | end |
74 | 74 |
|
75 | 75 | context "terrible answers" do |
76 | 76 | it "goes to taste_terrible on incredibly wrong answer" do |
77 | | - expect(scenario.handle_action("flavortown_taste_incredibly_wrong_t0")).to eq(:taste_terrible) |
| 77 | + expect(scenario.handle_action("flavortown_terrible_t0")).to eq(:taste_terrible) |
78 | 78 | end |
79 | 79 |
|
80 | 80 | it "goes to dino_nuggets on dino nuggets answer" do |
|
140 | 140 | step = scenario.handle_action("flavortown_agree") |
141 | 141 | expect(step).to eq(:taste_test) |
142 | 142 |
|
143 | | - step = scenario.handle_action("flavortown_taste_wrong_w0") |
144 | | - expect(step).to eq(:taste_wrong) |
145 | | - |
146 | | - step = scenario.handle_action("flavortown_try_again") |
147 | | - expect(step).to eq(:taste_test) |
| 143 | + step = scenario.handle_action("flavortown_retry_w0") |
| 144 | + expect(step).to eq(:taste_retry) |
148 | 145 |
|
149 | 146 | result = scenario.handle_action("flavortown_taste_correct") |
150 | 147 | expect(result).to eq({ step: :promoted, promote: true }) |
151 | 148 | end |
152 | 149 |
|
153 | | - it "can complete the gave-up path (wrong twice)" do |
| 150 | + it "can complete the reveal path (wrong twice)" do |
154 | 151 | scenario.handle_action("flavortown_continue") |
155 | 152 | scenario.handle_action("flavortown_agree") |
156 | 153 |
|
157 | | - step = scenario.handle_action("flavortown_taste_wrong_w0") |
158 | | - expect(step).to eq(:taste_wrong) |
| 154 | + step = scenario.handle_action("flavortown_retry_w0") |
| 155 | + expect(step).to eq(:taste_retry) |
159 | 156 |
|
160 | | - step = scenario.handle_action("flavortown_taste_wrong_again_w0") |
161 | | - expect(step).to eq(:taste_gave_up) |
| 157 | + step = scenario.handle_action("flavortown_final_w0") |
| 158 | + expect(step).to eq(:taste_reveal) |
162 | 159 | end |
163 | 160 |
|
164 | 161 | it "can complete the dino nuggets path" do |
|
169 | 166 | expect(step).to eq(:dino_nuggets) |
170 | 167 |
|
171 | 168 | step = scenario.handle_action("flavortown_try_again") |
172 | | - expect(step).to eq(:taste_test) |
| 169 | + expect(step).to eq(:taste_retry) |
173 | 170 | end |
174 | 171 |
|
175 | 172 | it "can complete the terrible answer path" do |
176 | 173 | scenario.handle_action("flavortown_continue") |
177 | 174 | scenario.handle_action("flavortown_agree") |
178 | 175 |
|
179 | | - step = scenario.handle_action("flavortown_taste_incredibly_wrong_t0") |
| 176 | + step = scenario.handle_action("flavortown_terrible_t0") |
180 | 177 | expect(step).to eq(:taste_terrible) |
181 | 178 |
|
182 | 179 | step = scenario.handle_action("flavortown_try_again") |
183 | | - expect(step).to eq(:taste_test) |
| 180 | + expect(step).to eq(:taste_retry) |
184 | 181 | end |
185 | 182 | end |
186 | 183 | end |
0 commit comments