Skip to content

Instantly share code, notes, and snippets.

@imsickofmaps
Created December 4, 2013 14:10
Show Gist options
  • Select an option

  • Save imsickofmaps/7787988 to your computer and use it in GitHub Desktop.

Select an option

Save imsickofmaps/7787988 to your computer and use it in GitHub Desktop.
it.only("Choosing more again option on crop should show more again", function (done) {
var p = tester.check_state({
user: {
current_state: "registration_crop",
answers: {
registration_start: "registration_name_first",
registration_name_first: "Bob",
registration_name_last: "Marley",
registration_gender: "M",
registration_town: "town one",
registration_district: "one"
},
pages: {
registration_crop: 9
}
},
content: "9",
next_state: "registration_crop",
response: "^What crops do you grow\\?[^]" +
"1. Pumpkin Leaves[^]" +
"2. Rape[^]" +
"3. Rice[^]" +
"4. Soybean[^]" +
"5. Sugar Cane[^]" +
"6. Sunflowers[^]" +
"7. Tobacco[^]" +
"8. Tomato[^]" +
"9. More[^]" +
"10. Back$"
});
p.then(done, done);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment