Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCode Raguet <ignacio.code@gmail.com>2013-09-06 13:16:09 (GMT)
committer Code Raguet <ignacio.code@gmail.com>2013-09-06 16:13:01 (GMT)
commitdf1e10850c68f54399858a5a269e2f0c29d65bcb (patch)
tree9721a224f62ac02b2a7f3f7c0c4577756a278646
parentf83dab8420ff5ddfd93eba701e56b95790d6fd14 (diff)
Change scenario to test .poll_result with 2 schools
-rw-r--r--webapp/webapp/features/fixtures/2schools.poll_result33
-rw-r--r--webapp/webapp/features/poll_result_details.feature4
2 files changed, 36 insertions, 1 deletions
diff --git a/webapp/webapp/features/fixtures/2schools.poll_result b/webapp/webapp/features/fixtures/2schools.poll_result
new file mode 100644
index 0000000..707c8ea
--- /dev/null
+++ b/webapp/webapp/features/fixtures/2schools.poll_result
@@ -0,0 +1,33 @@
+{
+ "poll_id":"",
+ "poll_name":"",
+ "poll_type":"general",
+ "pollster_id":"",
+ "pollster_username":"",
+ "result":{
+ "0":{
+ "answers":{},
+ "polled":{
+ "DEPARTAMENTO":"MONTEVIDEO",
+ "GRADO":"2",
+ "GRUPO":"A",
+ "ID":"0",
+ "NUM_ESC":"1",
+ "RUEE":"1101236",
+ "TIPO_GRUPO":"1"
+ }
+ },
+ "1":{
+ "answers":{},
+ "polled":{
+ "DEPARTAMENTO":"MONTEVIDEO",
+ "GRADO":"2",
+ "GRUPO":"A",
+ "ID":"0",
+ "NUM_ESC":"2",
+ "RUEE":"1101236",
+ "TIPO_GRUPO":"1"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/webapp/webapp/features/poll_result_details.feature b/webapp/webapp/features/poll_result_details.feature
index 74d39e4..331bad3 100644
--- a/webapp/webapp/features/poll_result_details.feature
+++ b/webapp/webapp/features/poll_result_details.feature
@@ -4,15 +4,17 @@ Feature: A Researcher sees the .poll_result details of a poll
So that I can inspect a particular .poll_result
And I can see the .poll_results uploaded during the progress of a poll
- Scenario: With two poll_results uploaded
+ Scenario: 3 .poll_results uploaded
Given I am a researcher
And "poll1" is "Cerrada"
And "encuestador1" is binded to "poll1"
And "encuestador2" is binded to "poll1"
And with "simple.poll_result" uploaded by "encuestador1" on "31/12/2000 24:00hs"
And with "simple2.poll_result" uploaded by "encuestador2" on "01/01/2001 00:01hs"
+ And with "2schools.poll_result" uploaded by "encuestador2" on "15/09/2013 09:14hs"
When I visit the "Resultados" page for "poll1" poll
Then I should see the poll_result details:
| NĂºmero de escuela | Nombre de Encuestador | Cantidad de Encuestados | Nombre del Archivo .polls_results | Time Stamp |
| 236 | encuestador1 | 1 | simple.poll_result | 31/12/2000 24:00hs |
| 236 | encuestador2 | 2 | simple2.poll_result | 01/01/2001 00:01hs |
+ | 1, 2 | encuestador2 | 2 | 2schools.poll_result | 15/09/2013 09:14hs |