Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-10-04 17:47:14 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-10-04 17:47:14 (GMT)
commit5150b12e47c232f3e9636841ac91b46da4f7b61a (patch)
tree22daa7b2623fe56583562ac168082c138c662cfb
parent0934368621e918072fbf48a6bdf7490c51a9ada7 (diff)
New scenario: "Upload two .poll_result with the same content at the same time"
-rw-r--r--webapp/webapp/features/fixtures/same_time.poll_result6
-rw-r--r--webapp/webapp/features/fixtures/same_time_copy.poll_result6
-rw-r--r--webapp/webapp/features/upload_poll_result.feature12
3 files changed, 24 insertions, 0 deletions
diff --git a/webapp/webapp/features/fixtures/same_time.poll_result b/webapp/webapp/features/fixtures/same_time.poll_result
new file mode 100644
index 0000000..d042f1d
--- /dev/null
+++ b/webapp/webapp/features/fixtures/same_time.poll_result
@@ -0,0 +1,6 @@
+{
+ "poll_id": "51d471b8f966f43d509a969a",
+ "pollster_id": "52040926421aa913c3bd4506",
+ "pollster_username": "encuestador",
+ "result": {}
+}
diff --git a/webapp/webapp/features/fixtures/same_time_copy.poll_result b/webapp/webapp/features/fixtures/same_time_copy.poll_result
new file mode 100644
index 0000000..d042f1d
--- /dev/null
+++ b/webapp/webapp/features/fixtures/same_time_copy.poll_result
@@ -0,0 +1,6 @@
+{
+ "poll_id": "51d471b8f966f43d509a969a",
+ "pollster_id": "52040926421aa913c3bd4506",
+ "pollster_username": "encuestador",
+ "result": {}
+}
diff --git a/webapp/webapp/features/upload_poll_result.feature b/webapp/webapp/features/upload_poll_result.feature
index 8b458a5..5ce7367 100644
--- a/webapp/webapp/features/upload_poll_result.feature
+++ b/webapp/webapp/features/upload_poll_result.feature
@@ -58,3 +58,15 @@ Feature: Upload .poll_result files
When I visit the "upload" page
And I upload "not_asigned_poll.poll_result"
Then I should see a message that says "Estos son resultados de una encuesta que no le fué asignada."
+
+ Scenario: Upload two .poll_result with the same content at the same time
+ Given I am logged in as "Pollster"
+ And "poll" exists
+ When I visit the "upload" page
+ And I load "same_time.poll_result" on position "1"
+ And I load "same_time_copy.poll_result" on position "2"
+ When I upload loaded files
+ Then I should see a message that says "same_time.poll_result"
+ And I should see a message that says "éxito"
+ And I should see a message that says "same_time_copy.poll_result"
+ And I should see a message that says "ya se encuentran publicados"