action_smser 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ module ActionSmser::DeliveryMethods
47
47
 
48
48
  def self.deliver_path(sms, to, options)
49
49
  path = "/sms/json?username=#{options[:username]}&password=#{options[:password]}&ttl=#{sms.ttl_to_i*1000}&status-report-req=#{options[:status_report_req]}&from=#{sms.from_encoded}&to=#{to}&text=#{sms.body_escaped}"
50
- path += "&code=#{options[:code]}" if options[:code]
50
+ path += "&type=#{options[:type]}" if options[:type]
51
51
  path
52
52
  end
53
53
 
@@ -1,3 +1,3 @@
1
1
  module ActionSmser
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
@@ -62736,3 +62736,3500 @@ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62736
62736
  Parameters: {"gateway"=>"example_gateway"}
62737
62737
  Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
62738
62738
   (0.2ms) rollback transaction
62739
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
62740
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
62741
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
62742
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
62743
+  (0.0ms) begin transaction
62744
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) 
62745
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
62746
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
62747
+  (0.0ms) commit transaction
62748
+  (0.1ms) begin transaction
62749
+ ---------------------------------------------------------------------------
62750
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
62751
+ ---------------------------------------------------------------------------
62752
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
62753
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62754
+  (0.0ms) rollback transaction
62755
+  (0.0ms) begin transaction
62756
+ ----------------------------------------------------------------------------
62757
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
62758
+ ----------------------------------------------------------------------------
62759
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
62760
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62761
+  (0.0ms) rollback transaction
62762
+  (0.0ms) begin transaction
62763
+ --------------------------------------------------------------------------------------------
62764
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
62765
+ --------------------------------------------------------------------------------------------
62766
+  (0.0ms) rollback transaction
62767
+  (0.0ms) begin transaction
62768
+ -------------------------------------------------------------
62769
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
62770
+ -------------------------------------------------------------
62771
+  (0.0ms) rollback transaction
62772
+  (0.0ms) begin transaction
62773
+ ----------------------------------------------------------------------
62774
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
62775
+ ----------------------------------------------------------------------
62776
+  (0.0ms) rollback transaction
62777
+  (0.0ms) begin transaction
62778
+ --------------------------------------------------------------------------------------------------------
62779
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
62780
+ --------------------------------------------------------------------------------------------------------
62781
+  (0.0ms) rollback transaction
62782
+  (0.0ms) begin transaction
62783
+ -----------------------------------------------------------------------------
62784
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
62785
+ -----------------------------------------------------------------------------
62786
+  (0.0ms) rollback transaction
62787
+  (0.0ms) begin transaction
62788
+ ----------------------------------------------------------------
62789
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
62790
+ ----------------------------------------------------------------
62791
+  (0.0ms) rollback transaction
62792
+  (0.0ms) begin transaction
62793
+ --------------------------------------------------------
62794
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
62795
+ --------------------------------------------------------
62796
+  (0.0ms) rollback transaction
62797
+  (0.0ms) begin transaction
62798
+ --------------------------------------------------------------
62799
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
62800
+ --------------------------------------------------------------
62801
+  (0.0ms) rollback transaction
62802
+  (0.0ms) begin transaction
62803
+ -----------------------------------------------
62804
+ ActionSmser::BaseTest: test_should_be_valid_sms
62805
+ -----------------------------------------------
62806
+  (0.0ms) rollback transaction
62807
+  (0.0ms) begin transaction
62808
+ -------------------------------------------------------------------------------------
62809
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
62810
+ -------------------------------------------------------------------------------------
62811
+  (0.0ms) rollback transaction
62812
+  (0.0ms) begin transaction
62813
+ ------------------------------------------------------
62814
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
62815
+ ------------------------------------------------------
62816
+  (0.0ms) rollback transaction
62817
+  (0.0ms) begin transaction
62818
+ ---------------------------------------------------------------------
62819
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
62820
+ ---------------------------------------------------------------------
62821
+  (0.0ms) rollback transaction
62822
+  (0.0ms) begin transaction
62823
+ ----------------------------------------------------------------
62824
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
62825
+ ----------------------------------------------------------------
62826
+  (0.0ms) rollback transaction
62827
+  (0.0ms) begin transaction
62828
+ -------------------------------------------------------------
62829
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
62830
+ -------------------------------------------------------------
62831
+  (0.0ms) rollback transaction
62832
+  (0.0ms) begin transaction
62833
+ ----------------------------------------------------------------------------------------------
62834
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
62835
+ ----------------------------------------------------------------------------------------------
62836
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
62837
+ ActionSmser: Delivering sms by delayed_job
62838
+  (0.0ms) rollback transaction
62839
+  (0.0ms) begin transaction
62840
+ -------------------------------------------------------------
62841
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
62842
+ -------------------------------------------------------------
62843
+  (0.0ms) rollback transaction
62844
+  (0.0ms) begin transaction
62845
+ -------------------------------------------------------------------
62846
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
62847
+ -------------------------------------------------------------------
62848
+  (0.1ms) rollback transaction
62849
+  (0.0ms) begin transaction
62850
+ ------------------------------------------------------
62851
+ ActionSmser::DeliveryReportTest: test_create_from_save
62852
+ ------------------------------------------------------
62853
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62854
+  (0.0ms) SAVEPOINT active_record_1
62855
+ SQL (2.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62857
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62858
+  (0.0ms) rollback transaction
62859
+  (0.0ms) begin transaction
62860
+ -----------------------------------------------------------------
62861
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
62862
+ -----------------------------------------------------------------
62863
+  (0.0ms) SAVEPOINT active_record_1
62864
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62866
+  (0.0ms) SAVEPOINT active_record_1
62867
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62869
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62870
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:10:30", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:10:30: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:10:30", updated_at: "2014-01-13 13:10:30">
62871
+  (0.1ms) SAVEPOINT active_record_1
62872
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62874
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62875
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
62876
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62877
+  (0.0ms) SAVEPOINT active_record_1
62878
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "test_array_id_65202665"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62880
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
62881
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
62882
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["id", 1]]
62883
+  (0.0ms) rollback transaction
62884
+  (0.0ms) begin transaction
62885
+ --------------------------------------------
62886
+ ActionSmser::DeliveryReportTest: test_to_sms
62887
+ --------------------------------------------
62888
+  (0.0ms) SAVEPOINT active_record_1
62889
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62891
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62892
+  (0.0ms) rollback transaction
62893
+  (0.0ms) begin transaction
62894
+ -----------------------------------------------------
62895
+ ActionSmser::DeliveryReportTest: test_updating_status
62896
+ -----------------------------------------------------
62897
+  (0.0ms) SAVEPOINT active_record_1
62898
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62900
+  (0.0ms) SAVEPOINT active_record_1
62901
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: LOCAL_TEST\n2014-01-13 15:10:30: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62903
+  (0.0ms) rollback transaction
62904
+  (0.0ms) begin transaction
62905
+ --------------------------------------------------------------------------------
62906
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
62907
+ --------------------------------------------------------------------------------
62908
+  (0.0ms) SAVEPOINT active_record_1
62909
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62911
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62912
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
62913
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62914
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
62915
+  (0.0ms) SAVEPOINT active_record_1
62916
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n2014-01-13 15:10:30: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62918
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
62919
+ Rendered text template (0.0ms)
62920
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
62921
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62922
+  (0.1ms) rollback transaction
62923
+  (0.0ms) begin transaction
62924
+ -------------------------------------------------------------------------------------
62925
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
62926
+ -------------------------------------------------------------------------------------
62927
+  (0.0ms) SAVEPOINT active_record_1
62928
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62930
+  (0.0ms) SAVEPOINT active_record_1
62931
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62933
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62934
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
62935
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62936
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
62937
+  (0.0ms) SAVEPOINT active_record_1
62938
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n2014-01-13 15:10:30: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62940
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
62941
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
62942
+  (0.0ms) SAVEPOINT active_record_1
62943
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n2014-01-13 15:10:30: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62945
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
62946
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
62947
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62948
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
62949
+  (0.0ms) rollback transaction
62950
+  (0.0ms) begin transaction
62951
+ ----------------------------------------------------------------------------------
62952
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
62953
+ ----------------------------------------------------------------------------------
62954
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62955
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
62956
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
62957
+  (0.1ms) rollback transaction
62958
+  (0.0ms) begin transaction
62959
+ --------------------------------------------------------------------------
62960
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
62961
+ --------------------------------------------------------------------------
62962
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62963
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
62964
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62965
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
62966
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
62967
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
62968
+  (0.0ms) rollback transaction
62969
+  (0.0ms) begin transaction
62970
+ -----------------------------------------------------------------------------------------------------
62971
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
62972
+ -----------------------------------------------------------------------------------------------------
62973
+  (0.0ms) SAVEPOINT active_record_1
62974
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62976
+  (0.0ms) SAVEPOINT active_record_1
62977
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62979
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
62980
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208')
62981
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208') GROUP BY gateway
62982
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208')
62983
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208') GROUP BY status
62984
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208')
62985
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208') GROUP BY sms_type
62986
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.4ms)
62987
+  (0.0ms) rollback transaction
62988
+  (0.0ms) begin transaction
62989
+ --------------------------------------------------------------------------------
62990
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
62991
+ --------------------------------------------------------------------------------
62992
+  (0.0ms) SAVEPOINT active_record_1
62993
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_2"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62995
+  (0.0ms) SAVEPOINT active_record_1
62996
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
62997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62998
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
62999
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612')
63000
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612') GROUP BY gateway
63001
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612')
63002
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612') GROUP BY status
63003
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612')
63004
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612') GROUP BY sms_type
63005
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.4ms)
63006
+  (0.1ms) rollback transaction
63007
+  (0.0ms) begin transaction
63008
+ --------------------------------------------------------------------------------------------------------
63009
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
63010
+ --------------------------------------------------------------------------------------------------------
63011
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
63012
+ Filter chain halted as :admin_access_only rendered or redirected
63013
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
63014
+  (0.0ms) rollback transaction
63015
+  (0.0ms) begin transaction
63016
+ -------------------------------------------------------------------------------
63017
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
63018
+ -------------------------------------------------------------------------------
63019
+  (0.0ms) SAVEPOINT active_record_1
63020
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63022
+  (0.0ms) SAVEPOINT active_record_1
63023
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_3"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63025
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
63026
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
63027
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.1ms)
63028
+  (0.1ms) rollback transaction
63029
+  (0.0ms) begin transaction
63030
+ --------------------------------------------------------------------
63031
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
63032
+ --------------------------------------------------------------------
63033
+  (0.0ms) rollback transaction
63034
+  (0.0ms) begin transaction
63035
+ ------------------------------------------------------
63036
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
63037
+ ------------------------------------------------------
63038
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63039
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x9ece560>
63040
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63041
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x9ece560>
63042
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63043
+  (0.0ms) rollback transaction
63044
+  (0.0ms) begin transaction
63045
+ ---------------------------------------------------------
63046
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
63047
+ ---------------------------------------------------------
63048
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63049
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63050
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x9ee8208>
63051
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63052
+  (0.1ms) SAVEPOINT active_record_1
63053
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63055
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x9ee8208>
63056
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63057
+  (0.0ms) SAVEPOINT active_record_1
63058
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63060
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63061
+  (0.0ms) rollback transaction
63062
+  (0.0ms) begin transaction
63063
+ -----------------------------------------------------------
63064
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
63065
+ -----------------------------------------------------------
63066
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63067
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x9f2ea00>
63068
+ ActionSmser: id_1234
63069
+ id_6666
63070
+  (0.0ms) rollback transaction
63071
+  (0.0ms) begin transaction
63072
+ --------------------------------------------------------------
63073
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
63074
+ --------------------------------------------------------------
63075
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63076
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63077
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x9f34f68>
63078
+ ActionSmser: id_1234
63079
+ id_6666
63080
+  (0.0ms) SAVEPOINT active_record_1
63081
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63083
+  (0.0ms) SAVEPOINT active_record_1
63084
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63086
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63087
+  (0.0ms) rollback transaction
63088
+  (0.0ms) begin transaction
63089
+ ---------------------------------------------------------
63090
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
63091
+ ---------------------------------------------------------
63092
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
63093
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x9f7b918>
63094
+ ActionSmser: 100
63095
+ 123456789
63096
+ 0.064
63097
+ 1
63098
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x9f7b918>
63099
+ ActionSmser: 100
63100
+ 123456789
63101
+ 0.064
63102
+ 1
63103
+  (0.0ms) rollback transaction
63104
+  (0.0ms) begin transaction
63105
+ ------------------------------------------------------------
63106
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
63107
+ ------------------------------------------------------------
63108
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63109
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
63110
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x9f8a788>
63111
+ ActionSmser: 100
63112
+ 123456789
63113
+ 0.064
63114
+ 1
63115
+  (0.0ms) SAVEPOINT active_record_1
63116
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63118
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x9f8a788>
63119
+ ActionSmser: 100
63120
+ 123456789
63121
+ 0.064
63122
+ 1
63123
+  (0.0ms) SAVEPOINT active_record_1
63124
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63126
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63127
+  (0.0ms) rollback transaction
63128
+  (0.0ms) begin transaction
63129
+ --------------------------------------------------------
63130
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
63131
+ --------------------------------------------------------
63132
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63133
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63134
+  (0.0ms) rollback transaction
63135
+  (0.0ms) begin transaction
63136
+ ----------------------------------------------------------
63137
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
63138
+ ----------------------------------------------------------
63139
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63140
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63141
+  (0.0ms) rollback transaction
63142
+  (0.1ms) begin transaction
63143
+ -------------------------------------------------------------
63144
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
63145
+ -------------------------------------------------------------
63146
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63147
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63148
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63149
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63150
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63151
+  (0.0ms) SAVEPOINT active_record_1
63152
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "test_array_id_12428786"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63154
+  (0.0ms) SAVEPOINT active_record_1
63155
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "test_array_id_79966800"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
63156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63157
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63158
+  (0.0ms) rollback transaction
63159
+  (0.1ms) begin transaction
63160
+ ---------------------------
63161
+ ActionSmserTest: test_truth
63162
+ ---------------------------
63163
+  (0.0ms) rollback transaction
63164
+  (0.0ms) begin transaction
63165
+ ---------------------------------------------------------
63166
+ NavigationTest: test_basic_gateway_commit_delivery_report
63167
+ ---------------------------------------------------------
63168
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:10:30 +0200
63169
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63170
+ Parameters: {"gateway"=>"example_gateway"}
63171
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
63172
+  (0.1ms) rollback transaction
63173
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
63174
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
63175
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
63176
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
63177
+  (0.0ms) begin transaction
63178
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) 
63179
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
63180
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
63181
+  (0.0ms) commit transaction
63182
+  (0.1ms) begin transaction
63183
+ ---------------------------------------------------------------------------
63184
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
63185
+ ---------------------------------------------------------------------------
63186
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
63187
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63188
+  (0.0ms) rollback transaction
63189
+  (0.0ms) begin transaction
63190
+ ----------------------------------------------------------------------------
63191
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
63192
+ ----------------------------------------------------------------------------
63193
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
63194
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63195
+  (0.0ms) rollback transaction
63196
+  (0.0ms) begin transaction
63197
+ --------------------------------------------------------------------------------------------
63198
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
63199
+ --------------------------------------------------------------------------------------------
63200
+  (0.0ms) rollback transaction
63201
+  (0.0ms) begin transaction
63202
+ -------------------------------------------------------------
63203
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
63204
+ -------------------------------------------------------------
63205
+  (0.0ms) rollback transaction
63206
+  (0.0ms) begin transaction
63207
+ ----------------------------------------------------------------------
63208
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
63209
+ ----------------------------------------------------------------------
63210
+  (0.0ms) rollback transaction
63211
+  (0.1ms) begin transaction
63212
+ --------------------------------------------------------------------------------------------------------
63213
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
63214
+ --------------------------------------------------------------------------------------------------------
63215
+  (0.0ms) rollback transaction
63216
+  (0.0ms) begin transaction
63217
+ -----------------------------------------------------------------------------
63218
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
63219
+ -----------------------------------------------------------------------------
63220
+  (0.0ms) rollback transaction
63221
+  (0.0ms) begin transaction
63222
+ ----------------------------------------------------------------
63223
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
63224
+ ----------------------------------------------------------------
63225
+  (0.0ms) rollback transaction
63226
+  (0.0ms) begin transaction
63227
+ --------------------------------------------------------
63228
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
63229
+ --------------------------------------------------------
63230
+  (0.0ms) rollback transaction
63231
+  (0.0ms) begin transaction
63232
+ --------------------------------------------------------------
63233
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
63234
+ --------------------------------------------------------------
63235
+  (0.0ms) rollback transaction
63236
+  (0.0ms) begin transaction
63237
+ -----------------------------------------------
63238
+ ActionSmser::BaseTest: test_should_be_valid_sms
63239
+ -----------------------------------------------
63240
+  (0.0ms) rollback transaction
63241
+  (0.0ms) begin transaction
63242
+ -------------------------------------------------------------------------------------
63243
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
63244
+ -------------------------------------------------------------------------------------
63245
+  (0.0ms) rollback transaction
63246
+  (0.0ms) begin transaction
63247
+ ------------------------------------------------------
63248
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
63249
+ ------------------------------------------------------
63250
+  (0.0ms) rollback transaction
63251
+  (0.0ms) begin transaction
63252
+ ---------------------------------------------------------------------
63253
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
63254
+ ---------------------------------------------------------------------
63255
+  (0.0ms) rollback transaction
63256
+  (0.0ms) begin transaction
63257
+ ----------------------------------------------------------------
63258
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
63259
+ ----------------------------------------------------------------
63260
+  (0.0ms) rollback transaction
63261
+  (0.0ms) begin transaction
63262
+ -------------------------------------------------------------
63263
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
63264
+ -------------------------------------------------------------
63265
+  (0.0ms) rollback transaction
63266
+  (0.0ms) begin transaction
63267
+ ----------------------------------------------------------------------------------------------
63268
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
63269
+ ----------------------------------------------------------------------------------------------
63270
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63271
+ ActionSmser: Delivering sms by delayed_job
63272
+  (0.0ms) rollback transaction
63273
+  (0.0ms) begin transaction
63274
+ -------------------------------------------------------------
63275
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
63276
+ -------------------------------------------------------------
63277
+  (0.0ms) rollback transaction
63278
+  (0.0ms) begin transaction
63279
+ -------------------------------------------------------------------
63280
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
63281
+ -------------------------------------------------------------------
63282
+  (0.1ms) rollback transaction
63283
+  (0.0ms) begin transaction
63284
+ ------------------------------------------------------
63285
+ ActionSmser::DeliveryReportTest: test_create_from_save
63286
+ ------------------------------------------------------
63287
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63288
+  (0.0ms) SAVEPOINT active_record_1
63289
+ SQL (3.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63291
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63292
+  (0.0ms) rollback transaction
63293
+  (0.0ms) begin transaction
63294
+ -----------------------------------------------------------------
63295
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
63296
+ -----------------------------------------------------------------
63297
+  (0.0ms) SAVEPOINT active_record_1
63298
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63300
+  (0.0ms) SAVEPOINT active_record_1
63301
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63303
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63304
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:14:01", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:14:01: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:14:01", updated_at: "2014-01-13 13:14:01">
63305
+  (0.1ms) SAVEPOINT active_record_1
63306
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63308
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63309
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
63310
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63311
+  (0.0ms) SAVEPOINT active_record_1
63312
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_27058140"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63314
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
63315
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
63316
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["id", 1]]
63317
+  (0.0ms) rollback transaction
63318
+  (0.1ms) begin transaction
63319
+ --------------------------------------------
63320
+ ActionSmser::DeliveryReportTest: test_to_sms
63321
+ --------------------------------------------
63322
+  (0.0ms) SAVEPOINT active_record_1
63323
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63325
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63326
+  (0.0ms) rollback transaction
63327
+  (0.0ms) begin transaction
63328
+ -----------------------------------------------------
63329
+ ActionSmser::DeliveryReportTest: test_updating_status
63330
+ -----------------------------------------------------
63331
+  (0.0ms) SAVEPOINT active_record_1
63332
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63334
+  (0.0ms) SAVEPOINT active_record_1
63335
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: LOCAL_TEST\n2014-01-13 15:14:01: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63337
+  (0.0ms) rollback transaction
63338
+  (0.0ms) begin transaction
63339
+ --------------------------------------------------------------------------------
63340
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
63341
+ --------------------------------------------------------------------------------
63342
+  (0.0ms) SAVEPOINT active_record_1
63343
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63345
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63346
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
63347
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
63348
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
63349
+  (0.0ms) SAVEPOINT active_record_1
63350
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n2014-01-13 15:14:01: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63352
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
63353
+ Rendered text template (0.0ms)
63354
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
63355
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63356
+  (0.0ms) rollback transaction
63357
+  (0.0ms) begin transaction
63358
+ -------------------------------------------------------------------------------------
63359
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
63360
+ -------------------------------------------------------------------------------------
63361
+  (0.1ms) SAVEPOINT active_record_1
63362
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63364
+  (0.0ms) SAVEPOINT active_record_1
63365
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63367
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63368
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
63369
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
63370
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
63371
+  (0.0ms) SAVEPOINT active_record_1
63372
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n2014-01-13 15:14:01: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63374
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
63375
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
63376
+  (0.0ms) SAVEPOINT active_record_1
63377
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n2014-01-13 15:14:01: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63379
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
63380
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
63381
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63382
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
63383
+  (0.0ms) rollback transaction
63384
+  (0.0ms) begin transaction
63385
+ ----------------------------------------------------------------------------------
63386
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
63387
+ ----------------------------------------------------------------------------------
63388
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63389
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
63390
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
63391
+  (0.1ms) rollback transaction
63392
+  (0.0ms) begin transaction
63393
+ --------------------------------------------------------------------------
63394
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
63395
+ --------------------------------------------------------------------------
63396
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63397
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
63398
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
63399
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
63400
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
63401
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
63402
+  (0.0ms) rollback transaction
63403
+  (0.0ms) begin transaction
63404
+ -----------------------------------------------------------------------------------------------------
63405
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
63406
+ -----------------------------------------------------------------------------------------------------
63407
+  (0.0ms) SAVEPOINT active_record_1
63408
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63410
+  (0.0ms) SAVEPOINT active_record_1
63411
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63413
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
63414
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536')
63415
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536') GROUP BY gateway
63416
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536')
63417
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536') GROUP BY status
63418
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536')
63419
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536') GROUP BY sms_type
63420
+ Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.5ms)
63421
+  (0.0ms) rollback transaction
63422
+  (0.0ms) begin transaction
63423
+ --------------------------------------------------------------------------------
63424
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
63425
+ --------------------------------------------------------------------------------
63426
+  (0.0ms) SAVEPOINT active_record_1
63427
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63429
+  (0.0ms) SAVEPOINT active_record_1
63430
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63432
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
63433
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291')
63434
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291') GROUP BY gateway
63435
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291')
63436
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291') GROUP BY status
63437
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291')
63438
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291') GROUP BY sms_type
63439
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.4ms)
63440
+  (0.1ms) rollback transaction
63441
+  (0.0ms) begin transaction
63442
+ --------------------------------------------------------------------------------------------------------
63443
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
63444
+ --------------------------------------------------------------------------------------------------------
63445
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
63446
+ Filter chain halted as :admin_access_only rendered or redirected
63447
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
63448
+  (0.0ms) rollback transaction
63449
+  (0.0ms) begin transaction
63450
+ -------------------------------------------------------------------------------
63451
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
63452
+ -------------------------------------------------------------------------------
63453
+  (0.0ms) SAVEPOINT active_record_1
63454
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63456
+  (0.0ms) SAVEPOINT active_record_1
63457
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63459
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
63460
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
63461
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
63462
+  (0.0ms) rollback transaction
63463
+  (0.0ms) begin transaction
63464
+ --------------------------------------------------------------------
63465
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
63466
+ --------------------------------------------------------------------
63467
+  (0.0ms) rollback transaction
63468
+  (0.0ms) begin transaction
63469
+ ------------------------------------------------------
63470
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
63471
+ ------------------------------------------------------
63472
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63473
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x686b6a8>
63474
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63475
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x686b6a8>
63476
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63477
+  (0.0ms) rollback transaction
63478
+  (0.0ms) begin transaction
63479
+ ---------------------------------------------------------
63480
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
63481
+ ---------------------------------------------------------
63482
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63483
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63484
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x6bdfdc0>
63485
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63486
+  (0.0ms) SAVEPOINT active_record_1
63487
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63489
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x6bdfdc0>
63490
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63491
+  (0.0ms) SAVEPOINT active_record_1
63492
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63494
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63495
+  (0.0ms) rollback transaction
63496
+  (0.0ms) begin transaction
63497
+ -----------------------------------------------------------
63498
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
63499
+ -----------------------------------------------------------
63500
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63501
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x5d0b2e0>
63502
+ ActionSmser: id_1234
63503
+ id_6666
63504
+  (0.0ms) rollback transaction
63505
+  (0.0ms) begin transaction
63506
+ --------------------------------------------------------------
63507
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
63508
+ --------------------------------------------------------------
63509
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63510
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63511
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x73d3388>
63512
+ ActionSmser: id_1234
63513
+ id_6666
63514
+  (0.0ms) SAVEPOINT active_record_1
63515
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63517
+  (0.0ms) SAVEPOINT active_record_1
63518
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63520
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63521
+  (0.0ms) rollback transaction
63522
+  (0.0ms) begin transaction
63523
+ ---------------------------------------------------------
63524
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
63525
+ ---------------------------------------------------------
63526
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
63527
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3c32988>
63528
+ ActionSmser: 100
63529
+ 123456789
63530
+ 0.064
63531
+ 1
63532
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3c32988>
63533
+ ActionSmser: 100
63534
+ 123456789
63535
+ 0.064
63536
+ 1
63537
+  (0.1ms) rollback transaction
63538
+  (0.0ms) begin transaction
63539
+ ------------------------------------------------------------
63540
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
63541
+ ------------------------------------------------------------
63542
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63543
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
63544
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3bf88a0>
63545
+ ActionSmser: 100
63546
+ 123456789
63547
+ 0.064
63548
+ 1
63549
+  (0.0ms) SAVEPOINT active_record_1
63550
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63552
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3bf88a0>
63553
+ ActionSmser: 100
63554
+ 123456789
63555
+ 0.064
63556
+ 1
63557
+  (0.0ms) SAVEPOINT active_record_1
63558
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63560
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63561
+  (0.0ms) rollback transaction
63562
+  (0.0ms) begin transaction
63563
+ --------------------------------------------------------
63564
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
63565
+ --------------------------------------------------------
63566
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63567
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63568
+  (0.0ms) rollback transaction
63569
+  (0.0ms) begin transaction
63570
+ ----------------------------------------------------------
63571
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
63572
+ ----------------------------------------------------------
63573
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63574
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63575
+  (0.0ms) rollback transaction
63576
+  (0.0ms) begin transaction
63577
+ -------------------------------------------------------------
63578
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
63579
+ -------------------------------------------------------------
63580
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63581
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63582
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63583
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63584
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63585
+  (0.0ms) SAVEPOINT active_record_1
63586
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_52692672"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63588
+  (0.0ms) SAVEPOINT active_record_1
63589
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_5621661"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
63590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63591
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63592
+  (0.0ms) rollback transaction
63593
+  (0.1ms) begin transaction
63594
+ ---------------------------
63595
+ ActionSmserTest: test_truth
63596
+ ---------------------------
63597
+  (0.0ms) rollback transaction
63598
+  (0.0ms) begin transaction
63599
+ ---------------------------------------------------------
63600
+ NavigationTest: test_basic_gateway_commit_delivery_report
63601
+ ---------------------------------------------------------
63602
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:14:01 +0200
63603
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63604
+ Parameters: {"gateway"=>"example_gateway"}
63605
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
63606
+  (0.1ms) rollback transaction
63607
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
63608
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
63609
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
63610
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
63611
+  (0.0ms) begin transaction
63612
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) 
63613
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
63614
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
63615
+  (0.0ms) commit transaction
63616
+  (0.1ms) begin transaction
63617
+ ---------------------------------------------------------------------------
63618
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
63619
+ ---------------------------------------------------------------------------
63620
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
63621
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63622
+  (0.0ms) rollback transaction
63623
+  (0.0ms) begin transaction
63624
+ ----------------------------------------------------------------------------
63625
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
63626
+ ----------------------------------------------------------------------------
63627
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
63628
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63629
+  (0.0ms) rollback transaction
63630
+  (0.0ms) begin transaction
63631
+ --------------------------------------------------------------------------------------------
63632
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
63633
+ --------------------------------------------------------------------------------------------
63634
+  (0.0ms) rollback transaction
63635
+  (0.0ms) begin transaction
63636
+ -------------------------------------------------------------
63637
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
63638
+ -------------------------------------------------------------
63639
+  (0.0ms) rollback transaction
63640
+  (0.0ms) begin transaction
63641
+ ----------------------------------------------------------------------
63642
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
63643
+ ----------------------------------------------------------------------
63644
+  (0.0ms) rollback transaction
63645
+  (0.0ms) begin transaction
63646
+ --------------------------------------------------------------------------------------------------------
63647
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
63648
+ --------------------------------------------------------------------------------------------------------
63649
+  (0.0ms) rollback transaction
63650
+  (0.0ms) begin transaction
63651
+ -----------------------------------------------------------------------------
63652
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
63653
+ -----------------------------------------------------------------------------
63654
+  (0.0ms) rollback transaction
63655
+  (0.0ms) begin transaction
63656
+ ----------------------------------------------------------------
63657
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
63658
+ ----------------------------------------------------------------
63659
+  (0.0ms) rollback transaction
63660
+  (0.0ms) begin transaction
63661
+ --------------------------------------------------------
63662
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
63663
+ --------------------------------------------------------
63664
+  (0.0ms) rollback transaction
63665
+  (0.0ms) begin transaction
63666
+ --------------------------------------------------------------
63667
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
63668
+ --------------------------------------------------------------
63669
+  (0.0ms) rollback transaction
63670
+  (0.0ms) begin transaction
63671
+ -----------------------------------------------
63672
+ ActionSmser::BaseTest: test_should_be_valid_sms
63673
+ -----------------------------------------------
63674
+  (0.0ms) rollback transaction
63675
+  (0.0ms) begin transaction
63676
+ -------------------------------------------------------------------------------------
63677
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
63678
+ -------------------------------------------------------------------------------------
63679
+  (0.0ms) rollback transaction
63680
+  (0.0ms) begin transaction
63681
+ ------------------------------------------------------
63682
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
63683
+ ------------------------------------------------------
63684
+  (0.0ms) rollback transaction
63685
+  (0.0ms) begin transaction
63686
+ ---------------------------------------------------------------------
63687
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
63688
+ ---------------------------------------------------------------------
63689
+  (0.0ms) rollback transaction
63690
+  (0.0ms) begin transaction
63691
+ ----------------------------------------------------------------
63692
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
63693
+ ----------------------------------------------------------------
63694
+  (0.0ms) rollback transaction
63695
+  (0.0ms) begin transaction
63696
+ -------------------------------------------------------------
63697
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
63698
+ -------------------------------------------------------------
63699
+  (0.0ms) rollback transaction
63700
+  (0.0ms) begin transaction
63701
+ ----------------------------------------------------------------------------------------------
63702
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
63703
+ ----------------------------------------------------------------------------------------------
63704
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63705
+ ActionSmser: Delivering sms by delayed_job
63706
+  (0.0ms) rollback transaction
63707
+  (0.0ms) begin transaction
63708
+ -------------------------------------------------------------
63709
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
63710
+ -------------------------------------------------------------
63711
+  (0.0ms) rollback transaction
63712
+  (0.0ms) begin transaction
63713
+ -------------------------------------------------------------------
63714
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
63715
+ -------------------------------------------------------------------
63716
+  (0.1ms) rollback transaction
63717
+  (0.0ms) begin transaction
63718
+ ------------------------------------------------------
63719
+ ActionSmser::DeliveryReportTest: test_create_from_save
63720
+ ------------------------------------------------------
63721
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63722
+  (0.0ms) SAVEPOINT active_record_1
63723
+ SQL (23.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63725
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63726
+  (0.0ms) rollback transaction
63727
+  (0.0ms) begin transaction
63728
+ -----------------------------------------------------------------
63729
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
63730
+ -----------------------------------------------------------------
63731
+  (0.0ms) SAVEPOINT active_record_1
63732
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63734
+  (0.0ms) SAVEPOINT active_record_1
63735
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63737
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63738
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:14:18", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:14:18: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:14:18", updated_at: "2014-01-13 13:14:18">
63739
+  (0.1ms) SAVEPOINT active_record_1
63740
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63742
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63743
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
63744
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
63745
+  (0.0ms) SAVEPOINT active_record_1
63746
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:18: LOCAL_SENT\n"], ["msg_id", "test_array_id_63310685"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63748
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
63749
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
63750
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["id", 1]]
63751
+  (0.0ms) rollback transaction
63752
+  (0.0ms) begin transaction
63753
+ --------------------------------------------
63754
+ ActionSmser::DeliveryReportTest: test_to_sms
63755
+ --------------------------------------------
63756
+  (0.0ms) SAVEPOINT active_record_1
63757
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63759
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63760
+  (0.0ms) rollback transaction
63761
+  (0.0ms) begin transaction
63762
+ -----------------------------------------------------
63763
+ ActionSmser::DeliveryReportTest: test_updating_status
63764
+ -----------------------------------------------------
63765
+  (0.0ms) SAVEPOINT active_record_1
63766
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63768
+  (0.0ms) SAVEPOINT active_record_1
63769
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: LOCAL_TEST\n2014-01-13 15:14:18: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63771
+  (0.0ms) rollback transaction
63772
+  (0.0ms) begin transaction
63773
+ --------------------------------------------------------------------------------
63774
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
63775
+ --------------------------------------------------------------------------------
63776
+  (0.0ms) SAVEPOINT active_record_1
63777
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63779
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63780
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
63781
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
63782
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
63783
+  (0.0ms) SAVEPOINT active_record_1
63784
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n2014-01-13 15:14:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63786
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
63787
+ Rendered text template (0.0ms)
63788
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
63789
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63790
+  (0.1ms) rollback transaction
63791
+  (0.0ms) begin transaction
63792
+ -------------------------------------------------------------------------------------
63793
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
63794
+ -------------------------------------------------------------------------------------
63795
+  (0.0ms) SAVEPOINT active_record_1
63796
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63798
+  (0.0ms) SAVEPOINT active_record_1
63799
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63801
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63802
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
63803
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
63804
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
63805
+  (0.0ms) SAVEPOINT active_record_1
63806
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n2014-01-13 15:14:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63808
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
63809
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
63810
+  (0.0ms) SAVEPOINT active_record_1
63811
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n2014-01-13 15:14:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63813
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
63814
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
63815
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
63816
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
63817
+  (0.0ms) rollback transaction
63818
+  (0.0ms) begin transaction
63819
+ ----------------------------------------------------------------------------------
63820
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
63821
+ ----------------------------------------------------------------------------------
63822
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63823
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
63824
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
63825
+  (0.0ms) rollback transaction
63826
+  (0.0ms) begin transaction
63827
+ --------------------------------------------------------------------------
63828
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
63829
+ --------------------------------------------------------------------------
63830
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
63831
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
63832
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
63833
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
63834
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
63835
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
63836
+  (0.0ms) rollback transaction
63837
+  (0.0ms) begin transaction
63838
+ -----------------------------------------------------------------------------------------------------
63839
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
63840
+ -----------------------------------------------------------------------------------------------------
63841
+  (0.0ms) SAVEPOINT active_record_1
63842
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63844
+  (0.0ms) SAVEPOINT active_record_1
63845
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63847
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
63848
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669')
63849
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669') GROUP BY gateway
63850
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669')
63851
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669') GROUP BY status
63852
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669')
63853
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669') GROUP BY sms_type
63854
+ Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.4ms)
63855
+  (0.1ms) rollback transaction
63856
+  (0.0ms) begin transaction
63857
+ --------------------------------------------------------------------------------
63858
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
63859
+ --------------------------------------------------------------------------------
63860
+  (0.0ms) SAVEPOINT active_record_1
63861
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63863
+  (0.0ms) SAVEPOINT active_record_1
63864
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63866
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
63867
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546')
63868
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546') GROUP BY gateway
63869
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546')
63870
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546') GROUP BY status
63871
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546')
63872
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546') GROUP BY sms_type
63873
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.4ms)
63874
+  (0.0ms) rollback transaction
63875
+  (0.0ms) begin transaction
63876
+ --------------------------------------------------------------------------------------------------------
63877
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
63878
+ --------------------------------------------------------------------------------------------------------
63879
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
63880
+ Filter chain halted as :admin_access_only rendered or redirected
63881
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
63882
+  (0.1ms) rollback transaction
63883
+  (0.0ms) begin transaction
63884
+ -------------------------------------------------------------------------------
63885
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
63886
+ -------------------------------------------------------------------------------
63887
+  (0.0ms) SAVEPOINT active_record_1
63888
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63890
+  (0.0ms) SAVEPOINT active_record_1
63891
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_2"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
63892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63893
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
63894
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
63895
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
63896
+  (0.0ms) rollback transaction
63897
+  (0.0ms) begin transaction
63898
+ --------------------------------------------------------------------
63899
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
63900
+ --------------------------------------------------------------------
63901
+  (0.0ms) rollback transaction
63902
+  (0.0ms) begin transaction
63903
+ ------------------------------------------------------
63904
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
63905
+ ------------------------------------------------------
63906
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63907
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4858988>
63908
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63909
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4858988>
63910
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63911
+  (0.2ms) rollback transaction
63912
+  (0.1ms) begin transaction
63913
+ ---------------------------------------------------------
63914
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
63915
+ ---------------------------------------------------------
63916
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63917
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63918
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x470be18>
63919
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63920
+  (0.2ms) SAVEPOINT active_record_1
63921
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
63922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63923
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x470be18>
63924
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
63925
+  (0.1ms) SAVEPOINT active_record_1
63926
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
63927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63928
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63929
+  (0.2ms) rollback transaction
63930
+  (0.1ms) begin transaction
63931
+ -----------------------------------------------------------
63932
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
63933
+ -----------------------------------------------------------
63934
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63935
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4470d98>
63936
+ ActionSmser: id_1234
63937
+ id_6666
63938
+  (0.2ms) rollback transaction
63939
+  (0.0ms) begin transaction
63940
+ --------------------------------------------------------------
63941
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
63942
+ --------------------------------------------------------------
63943
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63944
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
63945
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4548fb8>
63946
+ ActionSmser: id_1234
63947
+ id_6666
63948
+  (0.0ms) SAVEPOINT active_record_1
63949
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
63950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63951
+  (0.0ms) SAVEPOINT active_record_1
63952
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
63953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63954
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63955
+  (0.0ms) rollback transaction
63956
+  (0.0ms) begin transaction
63957
+ ---------------------------------------------------------
63958
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
63959
+ ---------------------------------------------------------
63960
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
63961
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4d0e720>
63962
+ ActionSmser: 100
63963
+ 123456789
63964
+ 0.064
63965
+ 1
63966
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4d0e720>
63967
+ ActionSmser: 100
63968
+ 123456789
63969
+ 0.064
63970
+ 1
63971
+  (0.1ms) rollback transaction
63972
+  (0.0ms) begin transaction
63973
+ ------------------------------------------------------------
63974
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
63975
+ ------------------------------------------------------------
63976
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63977
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
63978
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4cf67b0>
63979
+ ActionSmser: 100
63980
+ 123456789
63981
+ 0.064
63982
+ 1
63983
+  (0.0ms) SAVEPOINT active_record_1
63984
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
63985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63986
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4cf67b0>
63987
+ ActionSmser: 100
63988
+ 123456789
63989
+ 0.064
63990
+ 1
63991
+  (0.0ms) SAVEPOINT active_record_1
63992
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
63993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63994
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
63995
+  (0.0ms) rollback transaction
63996
+  (0.0ms) begin transaction
63997
+ --------------------------------------------------------
63998
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
63999
+ --------------------------------------------------------
64000
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64001
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64002
+  (0.0ms) rollback transaction
64003
+  (0.1ms) begin transaction
64004
+ ----------------------------------------------------------
64005
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
64006
+ ----------------------------------------------------------
64007
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64008
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64009
+  (0.0ms) rollback transaction
64010
+  (0.0ms) begin transaction
64011
+ -------------------------------------------------------------
64012
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
64013
+ -------------------------------------------------------------
64014
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64015
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64016
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64017
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64018
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64019
+  (0.0ms) SAVEPOINT active_record_1
64020
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_20467337"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
64021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64022
+  (0.0ms) SAVEPOINT active_record_1
64023
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_96672636"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
64024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64025
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64026
+  (0.0ms) rollback transaction
64027
+  (0.0ms) begin transaction
64028
+ ---------------------------
64029
+ ActionSmserTest: test_truth
64030
+ ---------------------------
64031
+  (0.0ms) rollback transaction
64032
+  (0.0ms) begin transaction
64033
+ ---------------------------------------------------------
64034
+ NavigationTest: test_basic_gateway_commit_delivery_report
64035
+ ---------------------------------------------------------
64036
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:20:01 +0200
64037
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64038
+ Parameters: {"gateway"=>"example_gateway"}
64039
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64040
+  (0.1ms) rollback transaction
64041
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
64042
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
64043
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
64044
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
64045
+  (0.0ms) begin transaction
64046
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) 
64047
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
64048
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
64049
+  (0.0ms) commit transaction
64050
+  (0.1ms) begin transaction
64051
+ ---------------------------------------------------------------------------
64052
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
64053
+ ---------------------------------------------------------------------------
64054
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
64055
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64056
+  (0.0ms) rollback transaction
64057
+  (0.0ms) begin transaction
64058
+ ----------------------------------------------------------------------------
64059
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
64060
+ ----------------------------------------------------------------------------
64061
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
64062
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64063
+  (0.0ms) rollback transaction
64064
+  (0.0ms) begin transaction
64065
+ --------------------------------------------------------------------------------------------
64066
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
64067
+ --------------------------------------------------------------------------------------------
64068
+  (0.0ms) rollback transaction
64069
+  (0.0ms) begin transaction
64070
+ -------------------------------------------------------------
64071
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
64072
+ -------------------------------------------------------------
64073
+  (0.0ms) rollback transaction
64074
+  (0.0ms) begin transaction
64075
+ ----------------------------------------------------------------------
64076
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
64077
+ ----------------------------------------------------------------------
64078
+  (0.0ms) rollback transaction
64079
+  (0.0ms) begin transaction
64080
+ --------------------------------------------------------------------------------------------------------
64081
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
64082
+ --------------------------------------------------------------------------------------------------------
64083
+  (0.0ms) rollback transaction
64084
+  (0.0ms) begin transaction
64085
+ -----------------------------------------------------------------------------
64086
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
64087
+ -----------------------------------------------------------------------------
64088
+  (0.0ms) rollback transaction
64089
+  (0.0ms) begin transaction
64090
+ ----------------------------------------------------------------
64091
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
64092
+ ----------------------------------------------------------------
64093
+  (0.0ms) rollback transaction
64094
+  (0.0ms) begin transaction
64095
+ --------------------------------------------------------
64096
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
64097
+ --------------------------------------------------------
64098
+  (0.0ms) rollback transaction
64099
+  (0.0ms) begin transaction
64100
+ --------------------------------------------------------------
64101
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
64102
+ --------------------------------------------------------------
64103
+  (0.0ms) rollback transaction
64104
+  (0.0ms) begin transaction
64105
+ -----------------------------------------------
64106
+ ActionSmser::BaseTest: test_should_be_valid_sms
64107
+ -----------------------------------------------
64108
+  (0.0ms) rollback transaction
64109
+  (0.0ms) begin transaction
64110
+ -------------------------------------------------------------------------------------
64111
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
64112
+ -------------------------------------------------------------------------------------
64113
+  (0.0ms) rollback transaction
64114
+  (0.0ms) begin transaction
64115
+ ------------------------------------------------------
64116
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
64117
+ ------------------------------------------------------
64118
+  (0.0ms) rollback transaction
64119
+  (0.0ms) begin transaction
64120
+ ---------------------------------------------------------------------
64121
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
64122
+ ---------------------------------------------------------------------
64123
+  (0.0ms) rollback transaction
64124
+  (0.0ms) begin transaction
64125
+ ----------------------------------------------------------------
64126
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
64127
+ ----------------------------------------------------------------
64128
+  (0.0ms) rollback transaction
64129
+  (0.0ms) begin transaction
64130
+ -------------------------------------------------------------
64131
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
64132
+ -------------------------------------------------------------
64133
+  (0.0ms) rollback transaction
64134
+  (0.0ms) begin transaction
64135
+ ----------------------------------------------------------------------------------------------
64136
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
64137
+ ----------------------------------------------------------------------------------------------
64138
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64139
+ ActionSmser: Delivering sms by delayed_job
64140
+  (0.0ms) rollback transaction
64141
+  (0.0ms) begin transaction
64142
+ -------------------------------------------------------------
64143
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
64144
+ -------------------------------------------------------------
64145
+  (0.0ms) rollback transaction
64146
+  (0.0ms) begin transaction
64147
+ -------------------------------------------------------------------
64148
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
64149
+ -------------------------------------------------------------------
64150
+  (0.1ms) rollback transaction
64151
+  (0.0ms) begin transaction
64152
+ ------------------------------------------------------
64153
+ ActionSmser::DeliveryReportTest: test_create_from_save
64154
+ ------------------------------------------------------
64155
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64156
+  (0.0ms) SAVEPOINT active_record_1
64157
+ SQL (22.9ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64159
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64160
+  (0.0ms) rollback transaction
64161
+  (0.0ms) begin transaction
64162
+ -----------------------------------------------------------------
64163
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
64164
+ -----------------------------------------------------------------
64165
+  (0.0ms) SAVEPOINT active_record_1
64166
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64168
+  (0.0ms) SAVEPOINT active_record_1
64169
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64171
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64172
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:20:07", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:20:07: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:20:07", updated_at: "2014-01-13 13:20:07">
64173
+  (0.0ms) SAVEPOINT active_record_1
64174
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64176
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64177
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
64178
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64179
+  (0.0ms) SAVEPOINT active_record_1
64180
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "test_array_id_91303021"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64182
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
64183
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
64184
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["id", 1]]
64185
+  (0.0ms) rollback transaction
64186
+  (0.0ms) begin transaction
64187
+ --------------------------------------------
64188
+ ActionSmser::DeliveryReportTest: test_to_sms
64189
+ --------------------------------------------
64190
+  (0.0ms) SAVEPOINT active_record_1
64191
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64193
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64194
+  (0.0ms) rollback transaction
64195
+  (0.0ms) begin transaction
64196
+ -----------------------------------------------------
64197
+ ActionSmser::DeliveryReportTest: test_updating_status
64198
+ -----------------------------------------------------
64199
+  (0.0ms) SAVEPOINT active_record_1
64200
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64202
+  (0.0ms) SAVEPOINT active_record_1
64203
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: LOCAL_TEST\n2014-01-13 15:20:07: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64205
+  (0.0ms) rollback transaction
64206
+  (0.0ms) begin transaction
64207
+ --------------------------------------------------------------------------------
64208
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
64209
+ --------------------------------------------------------------------------------
64210
+  (0.0ms) SAVEPOINT active_record_1
64211
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64213
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64214
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
64215
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
64216
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
64217
+  (0.0ms) SAVEPOINT active_record_1
64218
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n2014-01-13 15:20:07: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64220
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
64221
+ Rendered text template (0.0ms)
64222
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
64223
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64224
+  (0.1ms) rollback transaction
64225
+  (0.0ms) begin transaction
64226
+ -------------------------------------------------------------------------------------
64227
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
64228
+ -------------------------------------------------------------------------------------
64229
+  (0.0ms) SAVEPOINT active_record_1
64230
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64232
+  (0.0ms) SAVEPOINT active_record_1
64233
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64235
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64236
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
64237
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
64238
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
64239
+  (0.0ms) SAVEPOINT active_record_1
64240
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n2014-01-13 15:20:07: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64242
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
64243
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
64244
+  (0.0ms) SAVEPOINT active_record_1
64245
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n2014-01-13 15:20:07: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64247
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
64248
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
64249
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64250
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
64251
+  (0.0ms) rollback transaction
64252
+  (0.0ms) begin transaction
64253
+ ----------------------------------------------------------------------------------
64254
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
64255
+ ----------------------------------------------------------------------------------
64256
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64257
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
64258
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64259
+  (0.0ms) rollback transaction
64260
+  (0.0ms) begin transaction
64261
+ --------------------------------------------------------------------------
64262
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
64263
+ --------------------------------------------------------------------------
64264
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64265
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
64266
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
64267
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
64268
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
64269
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
64270
+  (0.0ms) rollback transaction
64271
+  (0.0ms) begin transaction
64272
+ -----------------------------------------------------------------------------------------------------
64273
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
64274
+ -----------------------------------------------------------------------------------------------------
64275
+  (0.0ms) SAVEPOINT active_record_1
64276
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64278
+  (0.0ms) SAVEPOINT active_record_1
64279
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64281
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
64282
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763')
64283
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763') GROUP BY gateway
64284
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763')
64285
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763') GROUP BY status
64286
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763')
64287
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763') GROUP BY sms_type
64288
+ Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.4ms)
64289
+  (0.0ms) rollback transaction
64290
+  (0.0ms) begin transaction
64291
+ --------------------------------------------------------------------------------
64292
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
64293
+ --------------------------------------------------------------------------------
64294
+  (0.0ms) SAVEPOINT active_record_1
64295
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64297
+  (0.0ms) SAVEPOINT active_record_1
64298
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_2"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64300
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
64301
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649')
64302
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649') GROUP BY gateway
64303
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649')
64304
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649') GROUP BY status
64305
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649')
64306
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649') GROUP BY sms_type
64307
+ Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms)
64308
+  (0.0ms) rollback transaction
64309
+  (0.0ms) begin transaction
64310
+ --------------------------------------------------------------------------------------------------------
64311
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
64312
+ --------------------------------------------------------------------------------------------------------
64313
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
64314
+ Filter chain halted as :admin_access_only rendered or redirected
64315
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64316
+  (0.1ms) rollback transaction
64317
+  (0.0ms) begin transaction
64318
+ -------------------------------------------------------------------------------
64319
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
64320
+ -------------------------------------------------------------------------------
64321
+  (0.0ms) SAVEPOINT active_record_1
64322
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64324
+  (0.0ms) SAVEPOINT active_record_1
64325
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64327
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
64328
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
64329
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
64330
+  (0.0ms) rollback transaction
64331
+  (0.0ms) begin transaction
64332
+ ------------------------------------------------------------------------------
64333
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
64334
+ ------------------------------------------------------------------------------
64335
+  (0.1ms) rollback transaction
64336
+  (0.0ms) begin transaction
64337
+ --------------------------------------------------------------------
64338
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
64339
+ --------------------------------------------------------------------
64340
+  (0.0ms) rollback transaction
64341
+  (0.0ms) begin transaction
64342
+ ------------------------------------------------------
64343
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
64344
+ ------------------------------------------------------
64345
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64346
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4d47868>
64347
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
64348
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4d47868>
64349
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
64350
+  (0.0ms) rollback transaction
64351
+  (0.0ms) begin transaction
64352
+ ---------------------------------------------------------
64353
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
64354
+ ---------------------------------------------------------
64355
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64356
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64357
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4d56ed0>
64358
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
64359
+  (0.0ms) SAVEPOINT active_record_1
64360
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64362
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4d56ed0>
64363
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
64364
+  (0.0ms) SAVEPOINT active_record_1
64365
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64367
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64368
+  (0.0ms) rollback transaction
64369
+  (0.0ms) begin transaction
64370
+ -----------------------------------------------------------
64371
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
64372
+ -----------------------------------------------------------
64373
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64374
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x50e0998>
64375
+ ActionSmser: id_1234
64376
+ id_6666
64377
+  (0.0ms) rollback transaction
64378
+  (0.0ms) begin transaction
64379
+ --------------------------------------------------------------
64380
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
64381
+ --------------------------------------------------------------
64382
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64383
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64384
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x50f1770>
64385
+ ActionSmser: id_1234
64386
+ id_6666
64387
+  (0.0ms) SAVEPOINT active_record_1
64388
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64390
+  (0.0ms) SAVEPOINT active_record_1
64391
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64393
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64394
+  (0.0ms) rollback transaction
64395
+  (0.0ms) begin transaction
64396
+ ---------------------------------------------------------
64397
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
64398
+ ---------------------------------------------------------
64399
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
64400
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x5069d98>
64401
+ ActionSmser: 100
64402
+ 123456789
64403
+ 0.064
64404
+ 1
64405
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x5069d98>
64406
+ ActionSmser: 100
64407
+ 123456789
64408
+ 0.064
64409
+ 1
64410
+  (0.1ms) rollback transaction
64411
+  (0.0ms) begin transaction
64412
+ ------------------------------------------------------------
64413
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
64414
+ ------------------------------------------------------------
64415
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64416
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
64417
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x507bf20>
64418
+ ActionSmser: 100
64419
+ 123456789
64420
+ 0.064
64421
+ 1
64422
+  (0.0ms) SAVEPOINT active_record_1
64423
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64425
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x507bf20>
64426
+ ActionSmser: 100
64427
+ 123456789
64428
+ 0.064
64429
+ 1
64430
+  (0.0ms) SAVEPOINT active_record_1
64431
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64433
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64434
+  (0.1ms) rollback transaction
64435
+  (0.0ms) begin transaction
64436
+ --------------------------------------------------------
64437
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
64438
+ --------------------------------------------------------
64439
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64440
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64441
+  (0.0ms) rollback transaction
64442
+  (0.0ms) begin transaction
64443
+ ----------------------------------------------------------
64444
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
64445
+ ----------------------------------------------------------
64446
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64447
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64448
+  (0.0ms) rollback transaction
64449
+  (0.0ms) begin transaction
64450
+ -------------------------------------------------------------
64451
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
64452
+ -------------------------------------------------------------
64453
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64454
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64455
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64456
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64457
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64458
+  (0.0ms) SAVEPOINT active_record_1
64459
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "test_array_id_8073424"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64461
+  (0.0ms) SAVEPOINT active_record_1
64462
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "test_array_id_40237505"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
64463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64464
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64465
+  (0.0ms) rollback transaction
64466
+  (0.0ms) begin transaction
64467
+ ---------------------------
64468
+ ActionSmserTest: test_truth
64469
+ ---------------------------
64470
+  (0.0ms) rollback transaction
64471
+  (0.0ms) begin transaction
64472
+ ---------------------------------------------------------
64473
+ NavigationTest: test_basic_gateway_commit_delivery_report
64474
+ ---------------------------------------------------------
64475
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:20:07 +0200
64476
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64477
+ Parameters: {"gateway"=>"example_gateway"}
64478
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64479
+  (0.1ms) rollback transaction
64480
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
64481
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
64482
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
64483
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
64484
+  (0.0ms) begin transaction
64485
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) 
64486
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
64487
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
64488
+  (0.0ms) commit transaction
64489
+  (0.1ms) begin transaction
64490
+ ---------------------------------------------------------------------------
64491
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
64492
+ ---------------------------------------------------------------------------
64493
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
64494
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64495
+  (0.0ms) rollback transaction
64496
+  (0.0ms) begin transaction
64497
+ ----------------------------------------------------------------------------
64498
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
64499
+ ----------------------------------------------------------------------------
64500
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
64501
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64502
+  (0.0ms) rollback transaction
64503
+  (0.0ms) begin transaction
64504
+ --------------------------------------------------------------------------------------------
64505
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
64506
+ --------------------------------------------------------------------------------------------
64507
+  (0.0ms) rollback transaction
64508
+  (0.0ms) begin transaction
64509
+ -------------------------------------------------------------
64510
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
64511
+ -------------------------------------------------------------
64512
+  (0.0ms) rollback transaction
64513
+  (0.0ms) begin transaction
64514
+ ----------------------------------------------------------------------
64515
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
64516
+ ----------------------------------------------------------------------
64517
+  (0.0ms) rollback transaction
64518
+  (0.0ms) begin transaction
64519
+ --------------------------------------------------------------------------------------------------------
64520
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
64521
+ --------------------------------------------------------------------------------------------------------
64522
+  (0.0ms) rollback transaction
64523
+  (0.0ms) begin transaction
64524
+ -----------------------------------------------------------------------------
64525
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
64526
+ -----------------------------------------------------------------------------
64527
+  (0.0ms) rollback transaction
64528
+  (0.0ms) begin transaction
64529
+ ----------------------------------------------------------------
64530
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
64531
+ ----------------------------------------------------------------
64532
+  (0.0ms) rollback transaction
64533
+  (0.0ms) begin transaction
64534
+ --------------------------------------------------------
64535
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
64536
+ --------------------------------------------------------
64537
+  (0.0ms) rollback transaction
64538
+  (0.0ms) begin transaction
64539
+ --------------------------------------------------------------
64540
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
64541
+ --------------------------------------------------------------
64542
+  (0.0ms) rollback transaction
64543
+  (0.0ms) begin transaction
64544
+ -----------------------------------------------
64545
+ ActionSmser::BaseTest: test_should_be_valid_sms
64546
+ -----------------------------------------------
64547
+  (0.0ms) rollback transaction
64548
+  (0.0ms) begin transaction
64549
+ -------------------------------------------------------------------------------------
64550
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
64551
+ -------------------------------------------------------------------------------------
64552
+  (0.0ms) rollback transaction
64553
+  (0.0ms) begin transaction
64554
+ ------------------------------------------------------
64555
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
64556
+ ------------------------------------------------------
64557
+  (0.0ms) rollback transaction
64558
+  (0.0ms) begin transaction
64559
+ ---------------------------------------------------------------------
64560
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
64561
+ ---------------------------------------------------------------------
64562
+  (0.0ms) rollback transaction
64563
+  (0.0ms) begin transaction
64564
+ ----------------------------------------------------------------
64565
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
64566
+ ----------------------------------------------------------------
64567
+  (0.0ms) rollback transaction
64568
+  (0.0ms) begin transaction
64569
+ -------------------------------------------------------------
64570
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
64571
+ -------------------------------------------------------------
64572
+  (0.0ms) rollback transaction
64573
+  (0.0ms) begin transaction
64574
+ ----------------------------------------------------------------------------------------------
64575
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
64576
+ ----------------------------------------------------------------------------------------------
64577
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64578
+ ActionSmser: Delivering sms by delayed_job
64579
+  (0.0ms) rollback transaction
64580
+  (0.0ms) begin transaction
64581
+ -------------------------------------------------------------
64582
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
64583
+ -------------------------------------------------------------
64584
+  (0.0ms) rollback transaction
64585
+  (0.0ms) begin transaction
64586
+ -------------------------------------------------------------------
64587
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
64588
+ -------------------------------------------------------------------
64589
+  (0.1ms) rollback transaction
64590
+  (0.0ms) begin transaction
64591
+ ------------------------------------------------------
64592
+ ActionSmser::DeliveryReportTest: test_create_from_save
64593
+ ------------------------------------------------------
64594
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64595
+  (0.0ms) SAVEPOINT active_record_1
64596
+ SQL (23.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64598
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64599
+  (0.0ms) rollback transaction
64600
+  (0.0ms) begin transaction
64601
+ -----------------------------------------------------------------
64602
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
64603
+ -----------------------------------------------------------------
64604
+  (0.0ms) SAVEPOINT active_record_1
64605
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64607
+  (0.0ms) SAVEPOINT active_record_1
64608
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64610
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64611
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:20:18", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:20:18: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:20:18", updated_at: "2014-01-13 13:20:18">
64612
+  (0.1ms) SAVEPOINT active_record_1
64613
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64615
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64616
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
64617
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64618
+  (0.0ms) SAVEPOINT active_record_1
64619
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "test_array_id_4372149"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64621
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
64622
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
64623
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["id", 1]]
64624
+  (0.1ms) rollback transaction
64625
+  (0.1ms) begin transaction
64626
+ --------------------------------------------
64627
+ ActionSmser::DeliveryReportTest: test_to_sms
64628
+ --------------------------------------------
64629
+  (0.0ms) SAVEPOINT active_record_1
64630
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64632
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64633
+  (0.0ms) rollback transaction
64634
+  (0.0ms) begin transaction
64635
+ -----------------------------------------------------
64636
+ ActionSmser::DeliveryReportTest: test_updating_status
64637
+ -----------------------------------------------------
64638
+  (0.0ms) SAVEPOINT active_record_1
64639
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64641
+  (0.0ms) SAVEPOINT active_record_1
64642
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: LOCAL_TEST\n2014-01-13 15:20:18: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64644
+  (0.0ms) rollback transaction
64645
+  (0.0ms) begin transaction
64646
+ --------------------------------------------------------------------------------
64647
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
64648
+ --------------------------------------------------------------------------------
64649
+  (0.0ms) SAVEPOINT active_record_1
64650
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64652
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64653
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
64654
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
64655
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
64656
+  (0.0ms) SAVEPOINT active_record_1
64657
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n2014-01-13 15:20:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64659
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
64660
+ Rendered text template (0.0ms)
64661
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
64662
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64663
+  (0.1ms) rollback transaction
64664
+  (0.0ms) begin transaction
64665
+ -------------------------------------------------------------------------------------
64666
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
64667
+ -------------------------------------------------------------------------------------
64668
+  (0.1ms) SAVEPOINT active_record_1
64669
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64671
+  (0.0ms) SAVEPOINT active_record_1
64672
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64674
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64675
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
64676
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
64677
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
64678
+  (0.0ms) SAVEPOINT active_record_1
64679
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n2014-01-13 15:20:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64681
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
64682
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
64683
+  (0.0ms) SAVEPOINT active_record_1
64684
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n2014-01-13 15:20:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64686
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
64687
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
64688
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
64689
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
64690
+  (0.0ms) rollback transaction
64691
+  (0.0ms) begin transaction
64692
+ ----------------------------------------------------------------------------------
64693
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
64694
+ ----------------------------------------------------------------------------------
64695
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64696
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
64697
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64698
+  (0.0ms) rollback transaction
64699
+  (0.0ms) begin transaction
64700
+ --------------------------------------------------------------------------
64701
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
64702
+ --------------------------------------------------------------------------
64703
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64704
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
64705
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
64706
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
64707
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
64708
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
64709
+  (0.0ms) rollback transaction
64710
+  (0.0ms) begin transaction
64711
+ -----------------------------------------------------------------------------------------------------
64712
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
64713
+ -----------------------------------------------------------------------------------------------------
64714
+  (0.0ms) SAVEPOINT active_record_1
64715
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64717
+  (0.0ms) SAVEPOINT active_record_1
64718
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_0"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64720
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
64721
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538')
64722
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538') GROUP BY gateway
64723
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538')
64724
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538') GROUP BY status
64725
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538')
64726
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538') GROUP BY sms_type
64727
+ Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.5ms)
64728
+  (0.1ms) rollback transaction
64729
+  (0.0ms) begin transaction
64730
+ --------------------------------------------------------------------------------
64731
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
64732
+ --------------------------------------------------------------------------------
64733
+  (0.0ms) SAVEPOINT active_record_1
64734
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64735
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64736
+  (0.0ms) SAVEPOINT active_record_1
64737
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64739
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
64740
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537')
64741
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537') GROUP BY gateway
64742
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537')
64743
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537') GROUP BY status
64744
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537')
64745
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537') GROUP BY sms_type
64746
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.4ms)
64747
+  (0.1ms) rollback transaction
64748
+  (0.0ms) begin transaction
64749
+ --------------------------------------------------------------------------------------------------------
64750
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
64751
+ --------------------------------------------------------------------------------------------------------
64752
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
64753
+ Filter chain halted as :admin_access_only rendered or redirected
64754
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64755
+  (0.1ms) rollback transaction
64756
+  (0.0ms) begin transaction
64757
+ -------------------------------------------------------------------------------
64758
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
64759
+ -------------------------------------------------------------------------------
64760
+  (0.0ms) SAVEPOINT active_record_1
64761
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_0"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64763
+  (0.0ms) SAVEPOINT active_record_1
64764
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64766
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
64767
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
64768
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
64769
+  (0.1ms) rollback transaction
64770
+  (0.0ms) begin transaction
64771
+ ------------------------------------------------------------------------------
64772
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
64773
+ ------------------------------------------------------------------------------
64774
+  (0.0ms) rollback transaction
64775
+  (0.0ms) begin transaction
64776
+ --------------------------------------------------------------------
64777
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
64778
+ --------------------------------------------------------------------
64779
+  (0.0ms) rollback transaction
64780
+  (0.0ms) begin transaction
64781
+ ------------------------------------------------------
64782
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
64783
+ ------------------------------------------------------
64784
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64785
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x52b1a60>
64786
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
64787
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x52b1a60>
64788
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
64789
+  (0.1ms) rollback transaction
64790
+  (0.0ms) begin transaction
64791
+ ---------------------------------------------------------
64792
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
64793
+ ---------------------------------------------------------
64794
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64795
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64796
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x52c0920>
64797
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
64798
+  (0.0ms) SAVEPOINT active_record_1
64799
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64801
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x52c0920>
64802
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
64803
+  (0.0ms) SAVEPOINT active_record_1
64804
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64806
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64807
+  (0.1ms) rollback transaction
64808
+  (0.0ms) begin transaction
64809
+ -----------------------------------------------------------
64810
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
64811
+ -----------------------------------------------------------
64812
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64813
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x5317a68>
64814
+ ActionSmser: id_1234
64815
+ id_6666
64816
+  (0.0ms) rollback transaction
64817
+  (0.0ms) begin transaction
64818
+ --------------------------------------------------------------
64819
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
64820
+ --------------------------------------------------------------
64821
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64822
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64823
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x5326130>
64824
+ ActionSmser: id_1234
64825
+ id_6666
64826
+  (0.0ms) SAVEPOINT active_record_1
64827
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64829
+  (0.0ms) SAVEPOINT active_record_1
64830
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64832
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64833
+  (0.1ms) rollback transaction
64834
+  (0.0ms) begin transaction
64835
+ ---------------------------------------------------------
64836
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
64837
+ ---------------------------------------------------------
64838
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
64839
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x542c980>
64840
+ ActionSmser: 100
64841
+ 123456789
64842
+ 0.064
64843
+ 1
64844
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x542c980>
64845
+ ActionSmser: 100
64846
+ 123456789
64847
+ 0.064
64848
+ 1
64849
+  (0.0ms) rollback transaction
64850
+  (0.0ms) begin transaction
64851
+ ------------------------------------------------------------
64852
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
64853
+ ------------------------------------------------------------
64854
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64855
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
64856
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x5444260>
64857
+ ActionSmser: 100
64858
+ 123456789
64859
+ 0.064
64860
+ 1
64861
+  (0.0ms) SAVEPOINT active_record_1
64862
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64864
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x5444260>
64865
+ ActionSmser: 100
64866
+ 123456789
64867
+ 0.064
64868
+ 1
64869
+  (0.0ms) SAVEPOINT active_record_1
64870
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64872
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64873
+  (0.0ms) rollback transaction
64874
+  (0.0ms) begin transaction
64875
+ --------------------------------------------------------
64876
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
64877
+ --------------------------------------------------------
64878
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64879
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64880
+  (0.0ms) rollback transaction
64881
+  (0.0ms) begin transaction
64882
+ ----------------------------------------------------------
64883
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
64884
+ ----------------------------------------------------------
64885
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64886
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64887
+  (0.0ms) rollback transaction
64888
+  (0.0ms) begin transaction
64889
+ -------------------------------------------------------------
64890
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
64891
+ -------------------------------------------------------------
64892
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64893
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64894
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64895
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
64896
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64897
+  (0.0ms) SAVEPOINT active_record_1
64898
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "test_array_id_37610505"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64900
+  (0.0ms) SAVEPOINT active_record_1
64901
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "test_array_id_60348596"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
64902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64903
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
64904
+  (0.0ms) rollback transaction
64905
+  (0.0ms) begin transaction
64906
+ ---------------------------
64907
+ ActionSmserTest: test_truth
64908
+ ---------------------------
64909
+  (0.0ms) rollback transaction
64910
+  (0.0ms) begin transaction
64911
+ ---------------------------------------------------------
64912
+ NavigationTest: test_basic_gateway_commit_delivery_report
64913
+ ---------------------------------------------------------
64914
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:20:18 +0200
64915
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
64916
+ Parameters: {"gateway"=>"example_gateway"}
64917
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64918
+  (0.1ms) rollback transaction
64919
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
64920
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
64921
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
64922
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
64923
+  (0.0ms) begin transaction
64924
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) 
64925
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
64926
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
64927
+  (0.0ms) commit transaction
64928
+  (0.1ms) begin transaction
64929
+ ---------------------------------------------------------------------------
64930
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
64931
+ ---------------------------------------------------------------------------
64932
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
64933
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64934
+  (0.0ms) rollback transaction
64935
+  (0.0ms) begin transaction
64936
+ ----------------------------------------------------------------------------
64937
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
64938
+ ----------------------------------------------------------------------------
64939
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
64940
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
64941
+  (0.0ms) rollback transaction
64942
+  (0.0ms) begin transaction
64943
+ --------------------------------------------------------------------------------------------
64944
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
64945
+ --------------------------------------------------------------------------------------------
64946
+  (0.0ms) rollback transaction
64947
+  (0.0ms) begin transaction
64948
+ -------------------------------------------------------------
64949
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
64950
+ -------------------------------------------------------------
64951
+  (0.0ms) rollback transaction
64952
+  (0.0ms) begin transaction
64953
+ ----------------------------------------------------------------------
64954
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
64955
+ ----------------------------------------------------------------------
64956
+  (0.0ms) rollback transaction
64957
+  (0.0ms) begin transaction
64958
+ --------------------------------------------------------------------------------------------------------
64959
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
64960
+ --------------------------------------------------------------------------------------------------------
64961
+  (0.0ms) rollback transaction
64962
+  (0.0ms) begin transaction
64963
+ -----------------------------------------------------------------------------
64964
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
64965
+ -----------------------------------------------------------------------------
64966
+  (0.0ms) rollback transaction
64967
+  (0.0ms) begin transaction
64968
+ ----------------------------------------------------------------
64969
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
64970
+ ----------------------------------------------------------------
64971
+  (0.0ms) rollback transaction
64972
+  (0.0ms) begin transaction
64973
+ --------------------------------------------------------
64974
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
64975
+ --------------------------------------------------------
64976
+  (0.0ms) rollback transaction
64977
+  (0.0ms) begin transaction
64978
+ --------------------------------------------------------------
64979
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
64980
+ --------------------------------------------------------------
64981
+  (0.0ms) rollback transaction
64982
+  (0.0ms) begin transaction
64983
+ -----------------------------------------------
64984
+ ActionSmser::BaseTest: test_should_be_valid_sms
64985
+ -----------------------------------------------
64986
+  (0.0ms) rollback transaction
64987
+  (0.0ms) begin transaction
64988
+ -------------------------------------------------------------------------------------
64989
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
64990
+ -------------------------------------------------------------------------------------
64991
+  (0.0ms) rollback transaction
64992
+  (0.0ms) begin transaction
64993
+ ------------------------------------------------------
64994
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
64995
+ ------------------------------------------------------
64996
+  (0.0ms) rollback transaction
64997
+  (0.0ms) begin transaction
64998
+ ---------------------------------------------------------------------
64999
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
65000
+ ---------------------------------------------------------------------
65001
+  (0.0ms) rollback transaction
65002
+  (0.1ms) begin transaction
65003
+ ----------------------------------------------------------------
65004
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
65005
+ ----------------------------------------------------------------
65006
+  (0.0ms) rollback transaction
65007
+  (0.0ms) begin transaction
65008
+ -------------------------------------------------------------
65009
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
65010
+ -------------------------------------------------------------
65011
+  (0.0ms) rollback transaction
65012
+  (0.0ms) begin transaction
65013
+ ----------------------------------------------------------------------------------------------
65014
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
65015
+ ----------------------------------------------------------------------------------------------
65016
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65017
+ ActionSmser: Delivering sms by delayed_job
65018
+  (0.0ms) rollback transaction
65019
+  (0.0ms) begin transaction
65020
+ -------------------------------------------------------------
65021
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
65022
+ -------------------------------------------------------------
65023
+  (0.0ms) rollback transaction
65024
+  (0.0ms) begin transaction
65025
+ -------------------------------------------------------------------
65026
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
65027
+ -------------------------------------------------------------------
65028
+  (0.1ms) rollback transaction
65029
+  (0.1ms) begin transaction
65030
+ ------------------------------------------------------
65031
+ ActionSmser::DeliveryReportTest: test_create_from_save
65032
+ ------------------------------------------------------
65033
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65034
+  (0.0ms) SAVEPOINT active_record_1
65035
+ SQL (2.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:59: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
65036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65037
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65038
+  (0.0ms) rollback transaction
65039
+  (0.0ms) begin transaction
65040
+ -----------------------------------------------------------------
65041
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
65042
+ -----------------------------------------------------------------
65043
+  (0.0ms) SAVEPOINT active_record_1
65044
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:59: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
65045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65046
+  (0.0ms) SAVEPOINT active_record_1
65047
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
65048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65049
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65050
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:20:59", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:20:59: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:20:59", updated_at: "2014-01-13 13:20:59">
65051
+  (0.1ms) SAVEPOINT active_record_1
65052
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
65053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65054
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65055
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
65056
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65057
+  (0.0ms) SAVEPOINT active_record_1
65058
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:59: LOCAL_SENT\n"], ["msg_id", "test_array_id_71240292"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
65059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65060
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
65061
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
65062
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["id", 1]]
65063
+  (0.0ms) rollback transaction
65064
+  (0.0ms) begin transaction
65065
+ --------------------------------------------
65066
+ ActionSmser::DeliveryReportTest: test_to_sms
65067
+ --------------------------------------------
65068
+  (0.0ms) SAVEPOINT active_record_1
65069
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65070
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65071
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65072
+  (0.0ms) rollback transaction
65073
+  (0.0ms) begin transaction
65074
+ -----------------------------------------------------
65075
+ ActionSmser::DeliveryReportTest: test_updating_status
65076
+ -----------------------------------------------------
65077
+  (0.0ms) SAVEPOINT active_record_1
65078
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65080
+  (0.0ms) SAVEPOINT active_record_1
65081
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: LOCAL_TEST\n2014-01-13 15:21:00: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65083
+  (0.0ms) rollback transaction
65084
+  (0.0ms) begin transaction
65085
+ --------------------------------------------------------------------------------
65086
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
65087
+ --------------------------------------------------------------------------------
65088
+  (0.0ms) SAVEPOINT active_record_1
65089
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65091
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65092
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
65093
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
65094
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65095
+  (0.0ms) SAVEPOINT active_record_1
65096
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n2014-01-13 15:21:00: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65098
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
65099
+ Rendered text template (0.0ms)
65100
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
65101
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65102
+  (0.1ms) rollback transaction
65103
+  (0.0ms) begin transaction
65104
+ -------------------------------------------------------------------------------------
65105
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
65106
+ -------------------------------------------------------------------------------------
65107
+  (0.0ms) SAVEPOINT active_record_1
65108
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65110
+  (0.0ms) SAVEPOINT active_record_1
65111
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65113
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65114
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
65115
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
65116
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65117
+  (0.0ms) SAVEPOINT active_record_1
65118
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n2014-01-13 15:21:00: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65120
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
65121
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65122
+  (0.0ms) SAVEPOINT active_record_1
65123
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n2014-01-13 15:21:00: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65125
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
65126
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
65127
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65128
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
65129
+  (0.0ms) rollback transaction
65130
+  (0.1ms) begin transaction
65131
+ ----------------------------------------------------------------------------------
65132
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
65133
+ ----------------------------------------------------------------------------------
65134
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65135
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
65136
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
65137
+  (0.1ms) rollback transaction
65138
+  (0.0ms) begin transaction
65139
+ --------------------------------------------------------------------------
65140
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
65141
+ --------------------------------------------------------------------------
65142
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65143
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
65144
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
65145
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65146
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
65147
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
65148
+  (0.0ms) rollback transaction
65149
+  (0.0ms) begin transaction
65150
+ -----------------------------------------------------------------------------------------------------
65151
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
65152
+ -----------------------------------------------------------------------------------------------------
65153
+  (0.0ms) SAVEPOINT active_record_1
65154
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_5"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65156
+  (0.0ms) SAVEPOINT active_record_1
65157
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65159
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
65160
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438')
65161
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438') GROUP BY gateway
65162
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438')
65163
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438') GROUP BY status
65164
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438')
65165
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438') GROUP BY sms_type
65166
+ Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.4ms)
65167
+  (0.0ms) rollback transaction
65168
+  (0.0ms) begin transaction
65169
+ --------------------------------------------------------------------------------
65170
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
65171
+ --------------------------------------------------------------------------------
65172
+  (0.0ms) SAVEPOINT active_record_1
65173
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65175
+  (0.0ms) SAVEPOINT active_record_1
65176
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65178
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
65179
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228')
65180
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228') GROUP BY gateway
65181
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228')
65182
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228') GROUP BY status
65183
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228')
65184
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228') GROUP BY sms_type
65185
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
65186
+  (0.1ms) rollback transaction
65187
+  (0.0ms) begin transaction
65188
+ --------------------------------------------------------------------------------------------------------
65189
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
65190
+ --------------------------------------------------------------------------------------------------------
65191
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
65192
+ Filter chain halted as :admin_access_only rendered or redirected
65193
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
65194
+  (0.0ms) rollback transaction
65195
+  (0.0ms) begin transaction
65196
+ -------------------------------------------------------------------------------
65197
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
65198
+ -------------------------------------------------------------------------------
65199
+  (0.0ms) SAVEPOINT active_record_1
65200
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65202
+  (0.0ms) SAVEPOINT active_record_1
65203
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_2"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65205
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
65206
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
65207
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
65208
+  (0.0ms) rollback transaction
65209
+  (0.0ms) begin transaction
65210
+ ------------------------------------------------------------------------------
65211
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
65212
+ ------------------------------------------------------------------------------
65213
+  (0.0ms) rollback transaction
65214
+  (0.0ms) begin transaction
65215
+ --------------------------------------------------------------------
65216
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
65217
+ --------------------------------------------------------------------
65218
+  (0.0ms) rollback transaction
65219
+  (0.0ms) begin transaction
65220
+ ------------------------------------------------------
65221
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
65222
+ ------------------------------------------------------
65223
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65224
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x36fd300>
65225
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
65226
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x36fd300>
65227
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
65228
+  (0.0ms) rollback transaction
65229
+  (0.0ms) begin transaction
65230
+ ---------------------------------------------------------
65231
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
65232
+ ---------------------------------------------------------
65233
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65234
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65235
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x370bf68>
65236
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
65237
+  (0.0ms) SAVEPOINT active_record_1
65238
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65240
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x370bf68>
65241
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
65242
+  (0.0ms) SAVEPOINT active_record_1
65243
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65245
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65246
+  (0.0ms) rollback transaction
65247
+  (0.0ms) begin transaction
65248
+ -----------------------------------------------------------
65249
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
65250
+ -----------------------------------------------------------
65251
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65252
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4ac3ab0>
65253
+ ActionSmser: id_1234
65254
+ id_6666
65255
+  (0.1ms) rollback transaction
65256
+  (0.0ms) begin transaction
65257
+ --------------------------------------------------------------
65258
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
65259
+ --------------------------------------------------------------
65260
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65261
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65262
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x580fde0>
65263
+ ActionSmser: id_1234
65264
+ id_6666
65265
+  (0.0ms) SAVEPOINT active_record_1
65266
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65268
+  (0.0ms) SAVEPOINT active_record_1
65269
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65271
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65272
+  (0.0ms) rollback transaction
65273
+  (0.0ms) begin transaction
65274
+ ---------------------------------------------------------
65275
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
65276
+ ---------------------------------------------------------
65277
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
65278
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7776990>
65279
+ ActionSmser: 100
65280
+ 123456789
65281
+ 0.064
65282
+ 1
65283
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7776990>
65284
+ ActionSmser: 100
65285
+ 123456789
65286
+ 0.064
65287
+ 1
65288
+  (0.0ms) rollback transaction
65289
+  (0.0ms) begin transaction
65290
+ ------------------------------------------------------------
65291
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
65292
+ ------------------------------------------------------------
65293
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65294
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
65295
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7767918>
65296
+ ActionSmser: 100
65297
+ 123456789
65298
+ 0.064
65299
+ 1
65300
+  (0.0ms) SAVEPOINT active_record_1
65301
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65303
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7767918>
65304
+ ActionSmser: 100
65305
+ 123456789
65306
+ 0.064
65307
+ 1
65308
+  (0.0ms) SAVEPOINT active_record_1
65309
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65311
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65312
+  (0.1ms) rollback transaction
65313
+  (0.0ms) begin transaction
65314
+ --------------------------------------------------------
65315
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
65316
+ --------------------------------------------------------
65317
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65318
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65319
+  (0.0ms) rollback transaction
65320
+  (0.0ms) begin transaction
65321
+ ----------------------------------------------------------
65322
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
65323
+ ----------------------------------------------------------
65324
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65325
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65326
+  (0.0ms) rollback transaction
65327
+  (0.0ms) begin transaction
65328
+ -------------------------------------------------------------
65329
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
65330
+ -------------------------------------------------------------
65331
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65332
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65333
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65334
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65335
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65336
+  (0.0ms) SAVEPOINT active_record_1
65337
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "test_array_id_7196626"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65339
+  (0.0ms) SAVEPOINT active_record_1
65340
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "test_array_id_1366476"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
65341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65342
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65343
+  (0.0ms) rollback transaction
65344
+  (0.0ms) begin transaction
65345
+ ---------------------------
65346
+ ActionSmserTest: test_truth
65347
+ ---------------------------
65348
+  (0.0ms) rollback transaction
65349
+  (0.0ms) begin transaction
65350
+ ---------------------------------------------------------
65351
+ NavigationTest: test_basic_gateway_commit_delivery_report
65352
+ ---------------------------------------------------------
65353
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:21:00 +0200
65354
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65355
+ Parameters: {"gateway"=>"example_gateway"}
65356
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
65357
+  (0.1ms) rollback transaction
65358
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
65359
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
65360
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
65361
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
65362
+  (0.1ms) begin transaction
65363
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) 
65364
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
65365
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
65366
+  (0.0ms) commit transaction
65367
+  (0.1ms) begin transaction
65368
+ ---------------------------------------------------------------------------
65369
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
65370
+ ---------------------------------------------------------------------------
65371
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
65372
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65373
+  (0.1ms) rollback transaction
65374
+  (0.0ms) begin transaction
65375
+ ----------------------------------------------------------------------------
65376
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
65377
+ ----------------------------------------------------------------------------
65378
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
65379
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65380
+  (0.0ms) rollback transaction
65381
+  (0.0ms) begin transaction
65382
+ --------------------------------------------------------------------------------------------
65383
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
65384
+ --------------------------------------------------------------------------------------------
65385
+  (0.0ms) rollback transaction
65386
+  (0.0ms) begin transaction
65387
+ -------------------------------------------------------------
65388
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
65389
+ -------------------------------------------------------------
65390
+  (0.0ms) rollback transaction
65391
+  (0.0ms) begin transaction
65392
+ ----------------------------------------------------------------------
65393
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
65394
+ ----------------------------------------------------------------------
65395
+  (0.0ms) rollback transaction
65396
+  (0.0ms) begin transaction
65397
+ --------------------------------------------------------------------------------------------------------
65398
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
65399
+ --------------------------------------------------------------------------------------------------------
65400
+  (0.0ms) rollback transaction
65401
+  (0.0ms) begin transaction
65402
+ -----------------------------------------------------------------------------
65403
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
65404
+ -----------------------------------------------------------------------------
65405
+  (0.0ms) rollback transaction
65406
+  (0.0ms) begin transaction
65407
+ ----------------------------------------------------------------
65408
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
65409
+ ----------------------------------------------------------------
65410
+  (0.0ms) rollback transaction
65411
+  (0.0ms) begin transaction
65412
+ --------------------------------------------------------
65413
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
65414
+ --------------------------------------------------------
65415
+  (0.0ms) rollback transaction
65416
+  (0.0ms) begin transaction
65417
+ --------------------------------------------------------------
65418
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
65419
+ --------------------------------------------------------------
65420
+  (0.0ms) rollback transaction
65421
+  (0.0ms) begin transaction
65422
+ -----------------------------------------------
65423
+ ActionSmser::BaseTest: test_should_be_valid_sms
65424
+ -----------------------------------------------
65425
+  (0.0ms) rollback transaction
65426
+  (0.0ms) begin transaction
65427
+ -------------------------------------------------------------------------------------
65428
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
65429
+ -------------------------------------------------------------------------------------
65430
+  (0.0ms) rollback transaction
65431
+  (0.0ms) begin transaction
65432
+ ------------------------------------------------------
65433
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
65434
+ ------------------------------------------------------
65435
+  (0.0ms) rollback transaction
65436
+  (0.0ms) begin transaction
65437
+ ---------------------------------------------------------------------
65438
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
65439
+ ---------------------------------------------------------------------
65440
+  (0.0ms) rollback transaction
65441
+  (0.0ms) begin transaction
65442
+ ----------------------------------------------------------------
65443
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
65444
+ ----------------------------------------------------------------
65445
+  (0.0ms) rollback transaction
65446
+  (0.0ms) begin transaction
65447
+ -------------------------------------------------------------
65448
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
65449
+ -------------------------------------------------------------
65450
+  (0.0ms) rollback transaction
65451
+  (0.0ms) begin transaction
65452
+ ----------------------------------------------------------------------------------------------
65453
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
65454
+ ----------------------------------------------------------------------------------------------
65455
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65456
+ ActionSmser: Delivering sms by delayed_job
65457
+  (0.1ms) rollback transaction
65458
+  (0.0ms) begin transaction
65459
+ -------------------------------------------------------------
65460
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
65461
+ -------------------------------------------------------------
65462
+  (0.0ms) rollback transaction
65463
+  (0.1ms) begin transaction
65464
+ -------------------------------------------------------------------
65465
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
65466
+ -------------------------------------------------------------------
65467
+  (0.1ms) rollback transaction
65468
+  (0.0ms) begin transaction
65469
+ ------------------------------------------------------
65470
+ ActionSmser::DeliveryReportTest: test_create_from_save
65471
+ ------------------------------------------------------
65472
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65473
+  (0.0ms) SAVEPOINT active_record_1
65474
+ SQL (3.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65476
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65477
+  (0.1ms) rollback transaction
65478
+  (0.0ms) begin transaction
65479
+ -----------------------------------------------------------------
65480
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
65481
+ -----------------------------------------------------------------
65482
+  (0.0ms) SAVEPOINT active_record_1
65483
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65485
+  (0.0ms) SAVEPOINT active_record_1
65486
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65488
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65489
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:21:14", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:21:14: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:21:14", updated_at: "2014-01-13 13:21:14">
65490
+  (0.0ms) SAVEPOINT active_record_1
65491
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65493
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65494
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
65495
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65496
+  (0.0ms) SAVEPOINT active_record_1
65497
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "test_array_id_50200350"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65499
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
65500
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
65501
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["id", 1]]
65502
+  (0.0ms) rollback transaction
65503
+  (0.0ms) begin transaction
65504
+ --------------------------------------------
65505
+ ActionSmser::DeliveryReportTest: test_to_sms
65506
+ --------------------------------------------
65507
+  (0.0ms) SAVEPOINT active_record_1
65508
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65510
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65511
+  (0.0ms) rollback transaction
65512
+  (0.0ms) begin transaction
65513
+ -----------------------------------------------------
65514
+ ActionSmser::DeliveryReportTest: test_updating_status
65515
+ -----------------------------------------------------
65516
+  (0.0ms) SAVEPOINT active_record_1
65517
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65519
+  (0.0ms) SAVEPOINT active_record_1
65520
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: LOCAL_TEST\n2014-01-13 15:21:14: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65522
+  (0.0ms) rollback transaction
65523
+  (0.0ms) begin transaction
65524
+ --------------------------------------------------------------------------------
65525
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
65526
+ --------------------------------------------------------------------------------
65527
+  (0.0ms) SAVEPOINT active_record_1
65528
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65530
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65531
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
65532
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
65533
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65534
+  (0.0ms) SAVEPOINT active_record_1
65535
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n2014-01-13 15:21:14: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65537
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
65538
+ Rendered text template (0.0ms)
65539
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
65540
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65541
+  (0.1ms) rollback transaction
65542
+  (0.0ms) begin transaction
65543
+ -------------------------------------------------------------------------------------
65544
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
65545
+ -------------------------------------------------------------------------------------
65546
+  (0.1ms) SAVEPOINT active_record_1
65547
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65549
+  (0.0ms) SAVEPOINT active_record_1
65550
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65552
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65553
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
65554
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
65555
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65556
+  (0.1ms) SAVEPOINT active_record_1
65557
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n2014-01-13 15:21:14: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65559
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
65560
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65561
+  (0.0ms) SAVEPOINT active_record_1
65562
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n2014-01-13 15:21:14: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65564
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
65565
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
65566
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65567
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
65568
+  (0.0ms) rollback transaction
65569
+  (0.0ms) begin transaction
65570
+ ----------------------------------------------------------------------------------
65571
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
65572
+ ----------------------------------------------------------------------------------
65573
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65574
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
65575
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
65576
+  (0.0ms) rollback transaction
65577
+  (0.0ms) begin transaction
65578
+ --------------------------------------------------------------------------
65579
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
65580
+ --------------------------------------------------------------------------
65581
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65582
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
65583
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
65584
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65585
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
65586
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
65587
+  (0.0ms) rollback transaction
65588
+  (0.0ms) begin transaction
65589
+ -----------------------------------------------------------------------------------------------------
65590
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
65591
+ -----------------------------------------------------------------------------------------------------
65592
+  (0.0ms) SAVEPOINT active_record_1
65593
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_5"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65595
+  (0.0ms) SAVEPOINT active_record_1
65596
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65598
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
65599
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337')
65600
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337') GROUP BY gateway
65601
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337')
65602
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337') GROUP BY status
65603
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337')
65604
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337') GROUP BY sms_type
65605
+ Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.4ms)
65606
+  (0.0ms) rollback transaction
65607
+  (0.0ms) begin transaction
65608
+ --------------------------------------------------------------------------------
65609
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
65610
+ --------------------------------------------------------------------------------
65611
+  (0.0ms) SAVEPOINT active_record_1
65612
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65614
+  (0.0ms) SAVEPOINT active_record_1
65615
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_0"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65617
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
65618
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212')
65619
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212') GROUP BY gateway
65620
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212')
65621
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212') GROUP BY status
65622
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212')
65623
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212') GROUP BY sms_type
65624
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.4ms)
65625
+  (0.1ms) rollback transaction
65626
+  (0.0ms) begin transaction
65627
+ --------------------------------------------------------------------------------------------------------
65628
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
65629
+ --------------------------------------------------------------------------------------------------------
65630
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
65631
+ Filter chain halted as :admin_access_only rendered or redirected
65632
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
65633
+  (0.0ms) rollback transaction
65634
+  (0.0ms) begin transaction
65635
+ -------------------------------------------------------------------------------
65636
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
65637
+ -------------------------------------------------------------------------------
65638
+  (0.0ms) SAVEPOINT active_record_1
65639
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65641
+  (0.0ms) SAVEPOINT active_record_1
65642
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65644
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
65645
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
65646
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
65647
+  (0.1ms) rollback transaction
65648
+  (0.0ms) begin transaction
65649
+ ------------------------------------------------------------------------------
65650
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
65651
+ ------------------------------------------------------------------------------
65652
+  (0.0ms) rollback transaction
65653
+  (0.0ms) begin transaction
65654
+ --------------------------------------------------------------------
65655
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
65656
+ --------------------------------------------------------------------
65657
+  (0.0ms) rollback transaction
65658
+  (0.1ms) begin transaction
65659
+ ------------------------------------------------------
65660
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
65661
+ ------------------------------------------------------
65662
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65663
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0xa137748>
65664
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
65665
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0xa137748>
65666
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
65667
+  (0.0ms) rollback transaction
65668
+  (0.0ms) begin transaction
65669
+ ---------------------------------------------------------
65670
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
65671
+ ---------------------------------------------------------
65672
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65673
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65674
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0xa1457f8>
65675
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
65676
+  (0.0ms) SAVEPOINT active_record_1
65677
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65679
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0xa1457f8>
65680
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
65681
+  (0.0ms) SAVEPOINT active_record_1
65682
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65684
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65685
+  (0.0ms) rollback transaction
65686
+  (0.0ms) begin transaction
65687
+ -----------------------------------------------------------
65688
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
65689
+ -----------------------------------------------------------
65690
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65691
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0xa18e9a8>
65692
+ ActionSmser: id_1234
65693
+ id_6666
65694
+  (0.0ms) rollback transaction
65695
+  (0.0ms) begin transaction
65696
+ --------------------------------------------------------------
65697
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
65698
+ --------------------------------------------------------------
65699
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65700
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65701
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0xa19d4d0>
65702
+ ActionSmser: id_1234
65703
+ id_6666
65704
+  (0.0ms) SAVEPOINT active_record_1
65705
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65707
+  (0.0ms) SAVEPOINT active_record_1
65708
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65710
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65711
+  (0.1ms) rollback transaction
65712
+  (0.0ms) begin transaction
65713
+ ---------------------------------------------------------
65714
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
65715
+ ---------------------------------------------------------
65716
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
65717
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0xa1dbac8>
65718
+ ActionSmser: 100
65719
+ 123456789
65720
+ 0.064
65721
+ 1
65722
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0xa1dbac8>
65723
+ ActionSmser: 100
65724
+ 123456789
65725
+ 0.064
65726
+ 1
65727
+  (0.1ms) rollback transaction
65728
+  (0.0ms) begin transaction
65729
+ ------------------------------------------------------------
65730
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
65731
+ ------------------------------------------------------------
65732
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65733
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
65734
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0xa1f3218>
65735
+ ActionSmser: 100
65736
+ 123456789
65737
+ 0.064
65738
+ 1
65739
+  (0.0ms) SAVEPOINT active_record_1
65740
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65742
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0xa1f3218>
65743
+ ActionSmser: 100
65744
+ 123456789
65745
+ 0.064
65746
+ 1
65747
+  (0.0ms) SAVEPOINT active_record_1
65748
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65750
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65751
+  (0.1ms) rollback transaction
65752
+  (0.0ms) begin transaction
65753
+ --------------------------------------------------------
65754
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
65755
+ --------------------------------------------------------
65756
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65757
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65758
+  (0.1ms) rollback transaction
65759
+  (0.0ms) begin transaction
65760
+ ----------------------------------------------------------
65761
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
65762
+ ----------------------------------------------------------
65763
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65764
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65765
+  (0.0ms) rollback transaction
65766
+  (0.0ms) begin transaction
65767
+ -------------------------------------------------------------
65768
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
65769
+ -------------------------------------------------------------
65770
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65771
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65772
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65773
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65774
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65775
+  (0.0ms) SAVEPOINT active_record_1
65776
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "test_array_id_24095176"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65778
+  (0.1ms) SAVEPOINT active_record_1
65779
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "test_array_id_50900705"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
65780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65781
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65782
+  (0.0ms) rollback transaction
65783
+  (0.0ms) begin transaction
65784
+ ---------------------------
65785
+ ActionSmserTest: test_truth
65786
+ ---------------------------
65787
+  (0.1ms) rollback transaction
65788
+  (0.1ms) begin transaction
65789
+ ---------------------------------------------------------
65790
+ NavigationTest: test_basic_gateway_commit_delivery_report
65791
+ ---------------------------------------------------------
65792
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:21:14 +0200
65793
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65794
+ Parameters: {"gateway"=>"example_gateway"}
65795
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
65796
+  (0.1ms) rollback transaction
65797
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
65798
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
65799
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
65800
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
65801
+  (0.1ms) begin transaction
65802
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) 
65803
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
65804
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
65805
+  (0.0ms) commit transaction
65806
+  (0.1ms) begin transaction
65807
+ ---------------------------------------------------------------------------
65808
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
65809
+ ---------------------------------------------------------------------------
65810
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
65811
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65812
+  (0.0ms) rollback transaction
65813
+  (0.0ms) begin transaction
65814
+ ----------------------------------------------------------------------------
65815
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
65816
+ ----------------------------------------------------------------------------
65817
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
65818
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65819
+  (0.0ms) rollback transaction
65820
+  (0.0ms) begin transaction
65821
+ --------------------------------------------------------------------------------------------
65822
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
65823
+ --------------------------------------------------------------------------------------------
65824
+  (0.0ms) rollback transaction
65825
+  (0.0ms) begin transaction
65826
+ -------------------------------------------------------------
65827
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
65828
+ -------------------------------------------------------------
65829
+  (0.0ms) rollback transaction
65830
+  (0.0ms) begin transaction
65831
+ ----------------------------------------------------------------------
65832
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
65833
+ ----------------------------------------------------------------------
65834
+  (0.0ms) rollback transaction
65835
+  (0.0ms) begin transaction
65836
+ --------------------------------------------------------------------------------------------------------
65837
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
65838
+ --------------------------------------------------------------------------------------------------------
65839
+  (0.0ms) rollback transaction
65840
+  (0.0ms) begin transaction
65841
+ -----------------------------------------------------------------------------
65842
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
65843
+ -----------------------------------------------------------------------------
65844
+  (0.0ms) rollback transaction
65845
+  (0.0ms) begin transaction
65846
+ ----------------------------------------------------------------
65847
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
65848
+ ----------------------------------------------------------------
65849
+  (0.0ms) rollback transaction
65850
+  (0.0ms) begin transaction
65851
+ --------------------------------------------------------
65852
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
65853
+ --------------------------------------------------------
65854
+  (0.0ms) rollback transaction
65855
+  (0.0ms) begin transaction
65856
+ --------------------------------------------------------------
65857
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
65858
+ --------------------------------------------------------------
65859
+  (0.0ms) rollback transaction
65860
+  (0.0ms) begin transaction
65861
+ -----------------------------------------------
65862
+ ActionSmser::BaseTest: test_should_be_valid_sms
65863
+ -----------------------------------------------
65864
+  (0.0ms) rollback transaction
65865
+  (0.0ms) begin transaction
65866
+ -------------------------------------------------------------------------------------
65867
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
65868
+ -------------------------------------------------------------------------------------
65869
+  (0.0ms) rollback transaction
65870
+  (0.0ms) begin transaction
65871
+ ------------------------------------------------------
65872
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
65873
+ ------------------------------------------------------
65874
+  (0.0ms) rollback transaction
65875
+  (0.0ms) begin transaction
65876
+ ---------------------------------------------------------------------
65877
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
65878
+ ---------------------------------------------------------------------
65879
+  (0.0ms) rollback transaction
65880
+  (0.0ms) begin transaction
65881
+ ----------------------------------------------------------------
65882
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
65883
+ ----------------------------------------------------------------
65884
+  (0.0ms) rollback transaction
65885
+  (0.0ms) begin transaction
65886
+ -------------------------------------------------------------
65887
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
65888
+ -------------------------------------------------------------
65889
+  (0.0ms) rollback transaction
65890
+  (0.0ms) begin transaction
65891
+ ----------------------------------------------------------------------------------------------
65892
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
65893
+ ----------------------------------------------------------------------------------------------
65894
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
65895
+ ActionSmser: Delivering sms by delayed_job
65896
+  (0.0ms) rollback transaction
65897
+  (0.0ms) begin transaction
65898
+ -------------------------------------------------------------
65899
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
65900
+ -------------------------------------------------------------
65901
+  (0.0ms) rollback transaction
65902
+  (0.0ms) begin transaction
65903
+ -------------------------------------------------------------------
65904
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
65905
+ -------------------------------------------------------------------
65906
+  (0.1ms) rollback transaction
65907
+  (0.0ms) begin transaction
65908
+ ------------------------------------------------------
65909
+ ActionSmser::DeliveryReportTest: test_create_from_save
65910
+ ------------------------------------------------------
65911
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65912
+  (0.0ms) SAVEPOINT active_record_1
65913
+ SQL (3.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65915
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
65916
+  (0.0ms) rollback transaction
65917
+  (0.0ms) begin transaction
65918
+ -----------------------------------------------------------------
65919
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
65920
+ -----------------------------------------------------------------
65921
+  (0.0ms) SAVEPOINT active_record_1
65922
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65924
+  (0.0ms) SAVEPOINT active_record_1
65925
+ SQL (0.3ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65927
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65928
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:23:38", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:23:38: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:23:38", updated_at: "2014-01-13 13:23:38">
65929
+  (0.1ms) SAVEPOINT active_record_1
65930
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65931
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65932
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65933
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
65934
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
65935
+  (0.0ms) SAVEPOINT active_record_1
65936
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "test_array_id_40264468"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65938
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
65939
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
65940
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["id", 1]]
65941
+  (0.0ms) rollback transaction
65942
+  (0.0ms) begin transaction
65943
+ --------------------------------------------
65944
+ ActionSmser::DeliveryReportTest: test_to_sms
65945
+ --------------------------------------------
65946
+  (0.0ms) SAVEPOINT active_record_1
65947
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65949
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65950
+  (0.0ms) rollback transaction
65951
+  (0.0ms) begin transaction
65952
+ -----------------------------------------------------
65953
+ ActionSmser::DeliveryReportTest: test_updating_status
65954
+ -----------------------------------------------------
65955
+  (0.0ms) SAVEPOINT active_record_1
65956
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65958
+  (0.0ms) SAVEPOINT active_record_1
65959
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: LOCAL_TEST\n2014-01-13 15:23:38: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65961
+  (0.0ms) rollback transaction
65962
+  (0.0ms) begin transaction
65963
+ --------------------------------------------------------------------------------
65964
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
65965
+ --------------------------------------------------------------------------------
65966
+  (0.0ms) SAVEPOINT active_record_1
65967
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65969
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65970
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
65971
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
65972
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65973
+  (0.0ms) SAVEPOINT active_record_1
65974
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n2014-01-13 15:23:38: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65976
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
65977
+ Rendered text template (0.0ms)
65978
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
65979
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
65980
+  (0.1ms) rollback transaction
65981
+  (0.1ms) begin transaction
65982
+ -------------------------------------------------------------------------------------
65983
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
65984
+ -------------------------------------------------------------------------------------
65985
+  (0.0ms) SAVEPOINT active_record_1
65986
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65987
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65988
+  (0.1ms) SAVEPOINT active_record_1
65989
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65991
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
65992
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
65993
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
65994
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
65995
+  (0.0ms) SAVEPOINT active_record_1
65996
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n2014-01-13 15:23:38: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
65997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65998
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
65999
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
66000
+  (0.0ms) SAVEPOINT active_record_1
66001
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n2014-01-13 15:23:38: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66003
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
66004
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
66005
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
66006
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
66007
+  (0.0ms) rollback transaction
66008
+  (0.0ms) begin transaction
66009
+ ----------------------------------------------------------------------------------
66010
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
66011
+ ----------------------------------------------------------------------------------
66012
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
66013
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
66014
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
66015
+  (0.1ms) rollback transaction
66016
+  (0.0ms) begin transaction
66017
+ --------------------------------------------------------------------------
66018
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
66019
+ --------------------------------------------------------------------------
66020
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
66021
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
66022
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
66023
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
66024
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
66025
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
66026
+  (0.0ms) rollback transaction
66027
+  (0.0ms) begin transaction
66028
+ -----------------------------------------------------------------------------------------------------
66029
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
66030
+ -----------------------------------------------------------------------------------------------------
66031
+  (0.0ms) SAVEPOINT active_record_1
66032
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66034
+  (0.0ms) SAVEPOINT active_record_1
66035
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66037
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
66038
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921')
66039
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921') GROUP BY gateway
66040
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921')
66041
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921') GROUP BY status
66042
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921')
66043
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921') GROUP BY sms_type
66044
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.5ms)
66045
+  (0.1ms) rollback transaction
66046
+  (0.0ms) begin transaction
66047
+ --------------------------------------------------------------------------------
66048
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
66049
+ --------------------------------------------------------------------------------
66050
+  (0.0ms) SAVEPOINT active_record_1
66051
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66053
+  (0.0ms) SAVEPOINT active_record_1
66054
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_3"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66056
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
66057
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389')
66058
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389') GROUP BY gateway
66059
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389')
66060
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389') GROUP BY status
66061
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389')
66062
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389') GROUP BY sms_type
66063
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.4ms)
66064
+  (0.1ms) rollback transaction
66065
+  (0.0ms) begin transaction
66066
+ --------------------------------------------------------------------------------------------------------
66067
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
66068
+ --------------------------------------------------------------------------------------------------------
66069
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
66070
+ Filter chain halted as :admin_access_only rendered or redirected
66071
+ Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
66072
+  (0.1ms) rollback transaction
66073
+  (0.1ms) begin transaction
66074
+ -------------------------------------------------------------------------------
66075
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
66076
+ -------------------------------------------------------------------------------
66077
+  (0.1ms) SAVEPOINT active_record_1
66078
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
66080
+  (0.0ms) SAVEPOINT active_record_1
66081
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66083
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
66084
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
66085
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
66086
+  (0.1ms) rollback transaction
66087
+  (0.0ms) begin transaction
66088
+ ------------------------------------------------------------------------------
66089
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
66090
+ ------------------------------------------------------------------------------
66091
+  (0.1ms) rollback transaction
66092
+  (0.0ms) begin transaction
66093
+ --------------------------------------------------------------------
66094
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
66095
+ --------------------------------------------------------------------
66096
+  (0.0ms) rollback transaction
66097
+  (0.0ms) begin transaction
66098
+ ------------------------------------------------------
66099
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
66100
+ ------------------------------------------------------
66101
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
66102
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x37a9858>
66103
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
66104
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x37a9858>
66105
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
66106
+  (0.0ms) rollback transaction
66107
+  (0.0ms) begin transaction
66108
+ ---------------------------------------------------------
66109
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
66110
+ ---------------------------------------------------------
66111
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
66112
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
66113
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x6a08510>
66114
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
66115
+  (0.1ms) SAVEPOINT active_record_1
66116
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66118
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x6a08510>
66119
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
66120
+  (0.0ms) SAVEPOINT active_record_1
66121
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66123
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
66124
+  (0.1ms) rollback transaction
66125
+  (0.0ms) begin transaction
66126
+ -----------------------------------------------------------
66127
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
66128
+ -----------------------------------------------------------
66129
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
66130
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3786e98>
66131
+ ActionSmser: id_1234
66132
+ id_6666
66133
+  (0.0ms) rollback transaction
66134
+  (0.0ms) begin transaction
66135
+ --------------------------------------------------------------
66136
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
66137
+ --------------------------------------------------------------
66138
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
66139
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
66140
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x730c2d8>
66141
+ ActionSmser: id_1234
66142
+ id_6666
66143
+  (0.1ms) SAVEPOINT active_record_1
66144
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66146
+  (0.0ms) SAVEPOINT active_record_1
66147
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66149
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
66150
+  (0.1ms) rollback transaction
66151
+  (0.0ms) begin transaction
66152
+ ---------------------------------------------------------
66153
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
66154
+ ---------------------------------------------------------
66155
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
66156
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7491608>
66157
+ ActionSmser: 100
66158
+ 123456789
66159
+ 0.064
66160
+ 1
66161
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7491608>
66162
+ ActionSmser: 100
66163
+ 123456789
66164
+ 0.064
66165
+ 1
66166
+  (0.0ms) rollback transaction
66167
+  (0.0ms) begin transaction
66168
+ ------------------------------------------------------------
66169
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
66170
+ ------------------------------------------------------------
66171
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
66172
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
66173
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x48d6e28>
66174
+ ActionSmser: 100
66175
+ 123456789
66176
+ 0.064
66177
+ 1
66178
+  (0.0ms) SAVEPOINT active_record_1
66179
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66181
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x48d6e28>
66182
+ ActionSmser: 100
66183
+ 123456789
66184
+ 0.064
66185
+ 1
66186
+  (0.0ms) SAVEPOINT active_record_1
66187
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66188
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66189
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
66190
+  (0.1ms) rollback transaction
66191
+  (0.0ms) begin transaction
66192
+ --------------------------------------------------------
66193
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
66194
+ --------------------------------------------------------
66195
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
66196
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
66197
+  (0.0ms) rollback transaction
66198
+  (0.0ms) begin transaction
66199
+ ----------------------------------------------------------
66200
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
66201
+ ----------------------------------------------------------
66202
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
66203
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
66204
+  (0.0ms) rollback transaction
66205
+  (0.0ms) begin transaction
66206
+ -------------------------------------------------------------
66207
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
66208
+ -------------------------------------------------------------
66209
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
66210
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
66211
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
66212
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
66213
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
66214
+  (0.0ms) SAVEPOINT active_record_1
66215
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "test_array_id_96244510"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66217
+  (0.0ms) SAVEPOINT active_record_1
66218
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "test_array_id_61526796"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
66219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66220
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
66221
+  (0.1ms) rollback transaction
66222
+  (0.1ms) begin transaction
66223
+ ---------------------------
66224
+ ActionSmserTest: test_truth
66225
+ ---------------------------
66226
+  (0.1ms) rollback transaction
66227
+  (0.1ms) begin transaction
66228
+ ---------------------------------------------------------
66229
+ NavigationTest: test_basic_gateway_commit_delivery_report
66230
+ ---------------------------------------------------------
66231
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:23:38 +0200
66232
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
66233
+ Parameters: {"gateway"=>"example_gateway"}
66234
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
66235
+  (0.1ms) rollback transaction