action_smser 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/config/routes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  ActionSmser::Engine.routes.draw do
2
2
 
3
- match 'delivery_reports/gateway_commit/:gateway' => 'delivery_reports#gateway_commit'
3
+ match 'delivery_reports/gateway_commit/:gateway' => 'delivery_reports#gateway_commit', via: [:get, :post]
4
4
 
5
5
  resources :delivery_reports, :only => :index do
6
6
  get 'list', :on => :collection
@@ -1,3 +1,3 @@
1
1
  module ActionSmser
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -1,12 +1,6 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- # Pick the frameworks you want:
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_mailer/railtie"
7
- require "active_resource/railtie"
8
- # require "sprockets/railtie"
9
- require "rails/test_unit/railtie"
3
+ require 'rails/all'
10
4
 
11
5
  Bundler.require
12
6
  require "action_smser"
@@ -61672,3 +61672,1067 @@ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for
61672
61672
  Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61673
61673
  Parameters: {"gateway"=>"example_gateway"}
61674
61674
  Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
61675
+ Connecting to database specified by database.yml
61676
+  (0.2ms) select sqlite_version(*)
61677
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
61678
+  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
61679
+  (3.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
61680
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
61681
+  (0.1ms) begin transaction
61682
+  (0.8ms) 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 NOT NULL, "updated_at" datetime NOT NULL)
61683
+  (0.4ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
61684
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
61685
+  (0.1ms) commit transaction
61686
+  (0.2ms) begin transaction
61687
+ 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)
61688
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61689
+  (0.1ms) rollback transaction
61690
+  (0.1ms) begin transaction
61691
+ 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)
61692
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61693
+  (0.1ms) rollback transaction
61694
+  (0.1ms) begin transaction
61695
+  (0.1ms) rollback transaction
61696
+  (0.1ms) begin transaction
61697
+  (0.1ms) rollback transaction
61698
+  (0.1ms) begin transaction
61699
+  (0.1ms) rollback transaction
61700
+  (0.1ms) begin transaction
61701
+  (0.1ms) rollback transaction
61702
+  (0.1ms) begin transaction
61703
+  (0.1ms) rollback transaction
61704
+  (0.1ms) begin transaction
61705
+  (0.1ms) rollback transaction
61706
+  (0.1ms) begin transaction
61707
+  (0.1ms) rollback transaction
61708
+  (0.1ms) begin transaction
61709
+  (0.1ms) rollback transaction
61710
+  (0.1ms) begin transaction
61711
+  (0.1ms) rollback transaction
61712
+  (0.1ms) begin transaction
61713
+  (0.1ms) rollback transaction
61714
+  (0.1ms) begin transaction
61715
+  (0.1ms) rollback transaction
61716
+  (0.1ms) begin transaction
61717
+  (0.1ms) rollback transaction
61718
+  (0.1ms) begin transaction
61719
+  (0.1ms) rollback transaction
61720
+  (0.1ms) begin transaction
61721
+  (0.1ms) rollback transaction
61722
+  (0.1ms) begin transaction
61723
+ 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)
61724
+ ActionSmser: Delivering sms by delayed_job
61725
+  (0.1ms) rollback transaction
61726
+  (0.2ms) begin transaction
61727
+  (0.2ms) rollback transaction
61728
+  (0.1ms) begin transaction
61729
+  (0.2ms) rollback transaction
61730
+  (0.1ms) begin transaction
61731
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61732
+  (0.1ms) SAVEPOINT active_record_1
61733
+ SQL (13.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61735
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61736
+  (0.2ms) rollback transaction
61737
+  (0.1ms) begin transaction
61738
+  (0.1ms) SAVEPOINT active_record_1
61739
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61741
+  (0.1ms) SAVEPOINT active_record_1
61742
+  (0.3ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-12-09 16:22:50.440627' WHERE "action_smser_delivery_reports"."id" = 1
61743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61744
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
61745
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-12-09 16:22:50", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-12-09 18:22:50: 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: "2013-12-09 16:22:50", updated_at: "2013-12-09 16:22:50">
61746
+  (0.1ms) SAVEPOINT active_record_1
61747
+  (0.3ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-12-09 16:22:50.451047' WHERE "action_smser_delivery_reports"."id" = 1
61748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61749
+ 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]]
61750
+ 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)
61751
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61752
+  (0.1ms) SAVEPOINT active_record_1
61753
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "test_array_id_51970642"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61755
+ ActionSmser::DeliveryReport Load (0.3ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
61756
+ ActionSmser::DeliveryReport Load (0.5ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
61757
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
61758
+  (0.1ms) rollback transaction
61759
+  (0.1ms) begin transaction
61760
+  (0.1ms) SAVEPOINT active_record_1
61761
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61763
+ 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]]
61764
+  (0.1ms) rollback transaction
61765
+  (0.1ms) begin transaction
61766
+  (0.1ms) SAVEPOINT active_record_1
61767
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-12-09 18:22:50: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61769
+  (0.1ms) SAVEPOINT active_record_1
61770
+  (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-12-09 16:22:50.590643', "log" = '2013-12-09 18:22:50: LOCAL_TEST
61771
+ 2013-12-09 18:22:50: TEST_2
61772
+ ', "updated_at" = '2013-12-09 16:22:50.591922' WHERE "action_smser_delivery_reports"."id" = 1
61773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61774
+  (0.1ms) rollback transaction
61775
+  (0.1ms) begin transaction
61776
+  (0.1ms) SAVEPOINT active_record_1
61777
+ SQL (1.0ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-12-09 18:22:50: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61779
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61780
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
61781
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
61782
+ ActionSmser::DeliveryReport Load (0.5ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
61783
+  (0.2ms) SAVEPOINT active_record_1
61784
+  (0.3ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-12-09 16:22:50.639265', "log" = '2013-12-09 18:22:50: ORIGINAL_STATUS
61785
+ 2013-12-09 18:22:50: DELIVERED
61786
+ ', "updated_at" = '2013-12-09 16:22:50.641346' WHERE "action_smser_delivery_reports"."id" = 1
61787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61788
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
61789
+ Rendered text template (0.0ms)
61790
+ Completed 200 OK in 40.3ms (Views: 26.1ms | ActiveRecord: 1.0ms)
61791
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
61792
+  (0.2ms) rollback transaction
61793
+  (0.1ms) begin transaction
61794
+  (0.1ms) SAVEPOINT active_record_1
61795
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-12-09 18:22:50: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61797
+  (0.1ms) SAVEPOINT active_record_1
61798
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-12-09 18:22:50: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61800
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61801
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
61802
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
61803
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
61804
+  (0.1ms) SAVEPOINT active_record_1
61805
+  (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-12-09 16:22:50.696850', "log" = '2013-12-09 18:22:50: ORIGINAL_STATUS
61806
+ 2013-12-09 18:22:50: DELIVERED
61807
+ ', "updated_at" = '2013-12-09 16:22:50.698421' WHERE "action_smser_delivery_reports"."id" = 1
61808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61809
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
61810
+ ActionSmser::DeliveryReport Load (0.5ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
61811
+  (0.1ms) SAVEPOINT active_record_1
61812
+  (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-12-09 16:22:50.703579', "log" = '2013-12-09 18:22:50: ORIGINAL_STATUS
61813
+ 2013-12-09 18:22:50: DELIVERED
61814
+ ', "updated_at" = '2013-12-09 16:22:50.705061' WHERE "action_smser_delivery_reports"."id" = 2
61815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61816
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
61817
+ Completed 200 OK in 14.9ms (Views: 0.9ms | ActiveRecord: 1.8ms)
61818
+ 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]]
61819
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
61820
+  (0.1ms) rollback transaction
61821
+  (0.1ms) begin transaction
61822
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61823
+ 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"}}}
61824
+ Completed 200 OK in 0.7ms (Views: 0.4ms | ActiveRecord: 0.0ms)
61825
+  (0.1ms) rollback transaction
61826
+  (0.1ms) begin transaction
61827
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61828
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
61829
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
61830
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
61831
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
61832
+ Completed 200 OK in 2.7ms (Views: 0.5ms | ActiveRecord: 0.4ms)
61833
+  (0.1ms) rollback transaction
61834
+  (0.1ms) begin transaction
61835
+  (0.1ms) SAVEPOINT active_record_1
61836
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61838
+  (0.1ms) SAVEPOINT active_record_1
61839
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_2"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61841
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
61842
+  (0.5ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.758368' AND '2013-12-09 16:12:50.762552')
61843
+  (0.3ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.758368' AND '2013-12-09 16:12:50.762552') GROUP BY gateway
61844
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.758368' AND '2013-12-09 16:12:50.762552')
61845
+  (0.3ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.758368' AND '2013-12-09 16:12:50.762552') GROUP BY status
61846
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.758368' AND '2013-12-09 16:12:50.762552')
61847
+  (0.2ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.758368' AND '2013-12-09 16:12:50.762552') GROUP BY sms_type
61848
+ Completed 200 OK in 54.6ms (Views: 51.8ms | ActiveRecord: 1.7ms)
61849
+  (0.2ms) rollback transaction
61850
+  (0.1ms) begin transaction
61851
+  (0.1ms) SAVEPOINT active_record_1
61852
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61854
+  (0.1ms) SAVEPOINT active_record_1
61855
+ SQL (39.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_2"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61857
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
61858
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.856210' AND '2013-12-09 16:12:50.856618')
61859
+  (0.3ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.856210' AND '2013-12-09 16:12:50.856618') GROUP BY gateway
61860
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.856210' AND '2013-12-09 16:12:50.856618')
61861
+  (0.3ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.856210' AND '2013-12-09 16:12:50.856618') GROUP BY status
61862
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.856210' AND '2013-12-09 16:12:50.856618')
61863
+  (0.2ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:22:50.856210' AND '2013-12-09 16:12:50.856618') GROUP BY sms_type
61864
+ Completed 200 OK in 26.9ms (Views: 24.9ms | ActiveRecord: 1.5ms)
61865
+  (0.2ms) rollback transaction
61866
+  (0.1ms) begin transaction
61867
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
61868
+ Filter chain halted as :admin_access_only rendered or redirected
61869
+ Completed 403 Forbidden in 1.2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
61870
+  (0.1ms) rollback transaction
61871
+  (0.2ms) begin transaction
61872
+  (0.1ms) SAVEPOINT active_record_1
61873
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_0"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61875
+  (0.1ms) SAVEPOINT active_record_1
61876
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61878
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
61879
+ ActionSmser::DeliveryReport Load (0.7ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
61880
+ Completed 200 OK in 14.3ms (Views: 12.7ms | ActiveRecord: 0.7ms)
61881
+  (0.2ms) rollback transaction
61882
+  (0.1ms) begin transaction
61883
+  (0.1ms) rollback transaction
61884
+  (0.1ms) begin transaction
61885
+ 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)
61886
+ 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:0x3a3a450>
61887
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
61888
+ 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:0x3a3a450>
61889
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
61890
+  (0.1ms) rollback transaction
61891
+  (0.1ms) begin transaction
61892
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61893
+ 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)
61894
+ 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:0x3a240d8>
61895
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
61896
+  (0.2ms) SAVEPOINT active_record_1
61897
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61899
+ 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:0x3a240d8>
61900
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
61901
+  (0.1ms) SAVEPOINT active_record_1
61902
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61904
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61905
+  (0.1ms) rollback transaction
61906
+  (0.1ms) begin transaction
61907
+ 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)
61908
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x39d2508>
61909
+ ActionSmser: id_1234
61910
+ id_6666
61911
+  (0.1ms) rollback transaction
61912
+  (0.1ms) begin transaction
61913
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61914
+ 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)
61915
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x39c5178>
61916
+ ActionSmser: id_1234
61917
+ id_6666
61918
+  (0.1ms) SAVEPOINT active_record_1
61919
+ SQL (1.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61920
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61921
+  (0.1ms) SAVEPOINT active_record_1
61922
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61924
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61925
+  (0.1ms) rollback transaction
61926
+  (0.1ms) begin transaction
61927
+ 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)
61928
+ 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:0x3971be0>
61929
+ ActionSmser: 100
61930
+ 123456789
61931
+ 0.064
61932
+ 1
61933
+ 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:0x3971be0>
61934
+ ActionSmser: 100
61935
+ 123456789
61936
+ 0.064
61937
+ 1
61938
+  (0.1ms) rollback transaction
61939
+  (0.1ms) begin transaction
61940
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61941
+ 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)
61942
+ 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:0x3960250>
61943
+ ActionSmser: 100
61944
+ 123456789
61945
+ 0.064
61946
+ 1
61947
+  (0.2ms) SAVEPOINT active_record_1
61948
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2013-12-09 18:22:50: LOCAL_SENT\n"], ["msg_id", "123456789"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 09 Dec 2013 16:22:50 UTC +00:00]]
61949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61950
+ 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:0x3960250>
61951
+ ActionSmser: 100
61952
+ 123456789
61953
+ 0.064
61954
+ 1
61955
+  (0.1ms) SAVEPOINT active_record_1
61956
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 09 Dec 2013 16:22:51 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2013-12-09 18:22:51: LOCAL_SENT\n"], ["msg_id", "123456789"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:51 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 09 Dec 2013 16:22:51 UTC +00:00]]
61957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61958
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61959
+  (0.1ms) rollback transaction
61960
+  (0.1ms) begin transaction
61961
+ 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)
61962
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61963
+  (0.1ms) rollback transaction
61964
+  (0.1ms) begin transaction
61965
+ 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)
61966
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61967
+  (0.1ms) rollback transaction
61968
+  (0.1ms) begin transaction
61969
+ 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)
61970
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61971
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61972
+ 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)
61973
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61974
+  (0.1ms) SAVEPOINT active_record_1
61975
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:51 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:22:51: LOCAL_SENT\n"], ["msg_id", "test_array_id_24861927"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:51 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:22:51 UTC +00:00]]
61976
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61977
+  (0.1ms) SAVEPOINT active_record_1
61978
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:22:51 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:22:51: LOCAL_SENT\n"], ["msg_id", "test_array_id_97205736"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:22:51 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:22:51 UTC +00:00]]
61979
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61980
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61981
+  (0.1ms) rollback transaction
61982
+  (0.1ms) begin transaction
61983
+  (0.1ms) rollback transaction
61984
+  (0.1ms) begin transaction
61985
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-12-09 18:22:51 +0200
61986
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61987
+ Parameters: {"gateway"=>"example_gateway"}
61988
+ Completed 200 OK in 1.2ms (Views: 0.8ms | ActiveRecord: 0.0ms)
61989
+  (0.2ms) rollback transaction
61990
+ Connecting to database specified by database.yml
61991
+  (0.2ms) select sqlite_version(*)
61992
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
61993
+  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
61994
+  (3.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
61995
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
61996
+  (0.1ms) begin transaction
61997
+  (0.8ms) 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 NOT NULL, "updated_at" datetime NOT NULL)
61998
+  (0.4ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
61999
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
62000
+  (0.1ms) commit transaction
62001
+  (0.2ms) begin transaction
62002
+ 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)
62003
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62004
+  (0.1ms) rollback transaction
62005
+  (0.1ms) begin transaction
62006
+ 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)
62007
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62008
+  (0.1ms) rollback transaction
62009
+  (0.1ms) begin transaction
62010
+  (0.1ms) rollback transaction
62011
+  (0.1ms) begin transaction
62012
+  (0.1ms) rollback transaction
62013
+  (0.1ms) begin transaction
62014
+  (0.1ms) rollback transaction
62015
+  (0.1ms) begin transaction
62016
+  (0.1ms) rollback transaction
62017
+  (0.1ms) begin transaction
62018
+  (0.1ms) rollback transaction
62019
+  (0.1ms) begin transaction
62020
+  (0.1ms) rollback transaction
62021
+  (0.1ms) begin transaction
62022
+  (0.2ms) rollback transaction
62023
+  (0.2ms) begin transaction
62024
+  (0.1ms) rollback transaction
62025
+  (0.1ms) begin transaction
62026
+  (0.1ms) rollback transaction
62027
+  (0.1ms) begin transaction
62028
+  (0.1ms) rollback transaction
62029
+  (0.1ms) begin transaction
62030
+  (0.1ms) rollback transaction
62031
+  (0.1ms) begin transaction
62032
+  (0.1ms) rollback transaction
62033
+  (0.1ms) begin transaction
62034
+  (0.1ms) rollback transaction
62035
+  (0.1ms) begin transaction
62036
+  (0.1ms) rollback transaction
62037
+  (0.1ms) begin transaction
62038
+ 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)
62039
+ ActionSmser: Delivering sms by delayed_job
62040
+  (0.1ms) rollback transaction
62041
+  (0.1ms) begin transaction
62042
+  (0.1ms) rollback transaction
62043
+  (0.1ms) begin transaction
62044
+  (0.2ms) rollback transaction
62045
+  (0.1ms) begin transaction
62046
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
62047
+  (0.1ms) SAVEPOINT active_record_1
62048
+ SQL (11.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62050
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
62051
+  (0.1ms) rollback transaction
62052
+  (0.1ms) begin transaction
62053
+  (0.1ms) SAVEPOINT active_record_1
62054
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62056
+  (0.1ms) SAVEPOINT active_record_1
62057
+  (0.3ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-12-09 16:24:44.379508' WHERE "action_smser_delivery_reports"."id" = 1
62058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62059
+ ActionSmser::DeliveryReport Load (0.5ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62060
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-12-09 16:24:44", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-12-09 18:24:44: 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: "2013-12-09 16:24:44", updated_at: "2013-12-09 16:24:44">
62061
+  (0.1ms) SAVEPOINT active_record_1
62062
+  (0.2ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-12-09 16:24:44.389765' WHERE "action_smser_delivery_reports"."id" = 1
62063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62064
+ 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]]
62065
+ 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)
62066
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62067
+  (0.1ms) SAVEPOINT active_record_1
62068
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "test_array_id_10143761"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62070
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
62071
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
62072
+ ActionSmser::DeliveryReport Load (0.5ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
62073
+  (0.1ms) rollback transaction
62074
+  (0.1ms) begin transaction
62075
+  (0.1ms) SAVEPOINT active_record_1
62076
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62078
+ 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]]
62079
+  (0.3ms) rollback transaction
62080
+  (0.1ms) begin transaction
62081
+  (0.1ms) SAVEPOINT active_record_1
62082
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-12-09 18:24:44: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62083
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62084
+  (0.1ms) SAVEPOINT active_record_1
62085
+  (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-12-09 16:24:44.484079', "log" = '2013-12-09 18:24:44: LOCAL_TEST
62086
+ 2013-12-09 18:24:44: TEST_2
62087
+ ', "updated_at" = '2013-12-09 16:24:44.485509' WHERE "action_smser_delivery_reports"."id" = 1
62088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62089
+  (0.1ms) rollback transaction
62090
+  (0.1ms) begin transaction
62091
+  (0.1ms) SAVEPOINT active_record_1
62092
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-12-09 18:24:44: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62094
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62095
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
62096
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62097
+ ActionSmser::DeliveryReport Load (0.5ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
62098
+  (0.1ms) SAVEPOINT active_record_1
62099
+  (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-12-09 16:24:44.531157', "log" = '2013-12-09 18:24:44: ORIGINAL_STATUS
62100
+ 2013-12-09 18:24:44: DELIVERED
62101
+ ', "updated_at" = '2013-12-09 16:24:44.533040' WHERE "action_smser_delivery_reports"."id" = 1
62102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62103
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
62104
+ Rendered text template (0.0ms)
62105
+ Completed 200 OK in 39.3ms (Views: 26.1ms | ActiveRecord: 0.9ms)
62106
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62107
+  (0.2ms) rollback transaction
62108
+  (0.1ms) begin transaction
62109
+  (0.1ms) SAVEPOINT active_record_1
62110
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-12-09 18:24:44: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62112
+  (0.1ms) SAVEPOINT active_record_1
62113
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-12-09 18:24:44: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62115
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62116
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
62117
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62118
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
62119
+  (0.1ms) SAVEPOINT active_record_1
62120
+  (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-12-09 16:24:44.627158', "log" = '2013-12-09 18:24:44: ORIGINAL_STATUS
62121
+ 2013-12-09 18:24:44: DELIVERED
62122
+ ', "updated_at" = '2013-12-09 16:24:44.628819' WHERE "action_smser_delivery_reports"."id" = 1
62123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62124
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
62125
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
62126
+  (0.1ms) SAVEPOINT active_record_1
62127
+  (0.3ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-12-09 16:24:44.633766', "log" = '2013-12-09 18:24:44: ORIGINAL_STATUS
62128
+ 2013-12-09 18:24:44: DELIVERED
62129
+ ', "updated_at" = '2013-12-09 16:24:44.635169' WHERE "action_smser_delivery_reports"."id" = 2
62130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62131
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
62132
+ Completed 200 OK in 15.0ms (Views: 0.8ms | ActiveRecord: 1.7ms)
62133
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62134
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
62135
+  (0.1ms) rollback transaction
62136
+  (0.1ms) begin transaction
62137
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62138
+ 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"}}}
62139
+ Completed 200 OK in 0.7ms (Views: 0.5ms | ActiveRecord: 0.0ms)
62140
+  (0.1ms) rollback transaction
62141
+  (0.1ms) begin transaction
62142
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62143
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
62144
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62145
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
62146
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
62147
+ Completed 200 OK in 2.6ms (Views: 0.5ms | ActiveRecord: 0.4ms)
62148
+  (0.1ms) rollback transaction
62149
+  (0.1ms) begin transaction
62150
+  (0.1ms) SAVEPOINT active_record_1
62151
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62153
+  (0.1ms) SAVEPOINT active_record_1
62154
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62156
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
62157
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.685378' AND '2013-12-09 16:14:44.685809')
62158
+  (0.3ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.685378' AND '2013-12-09 16:14:44.685809') GROUP BY gateway
62159
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.685378' AND '2013-12-09 16:14:44.685809')
62160
+  (0.2ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.685378' AND '2013-12-09 16:14:44.685809') GROUP BY status
62161
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.685378' AND '2013-12-09 16:14:44.685809')
62162
+  (0.2ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.685378' AND '2013-12-09 16:14:44.685809') GROUP BY sms_type
62163
+ Completed 200 OK in 46.4ms (Views: 43.8ms | ActiveRecord: 1.6ms)
62164
+  (0.2ms) rollback transaction
62165
+  (0.1ms) begin transaction
62166
+  (0.1ms) SAVEPOINT active_record_1
62167
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62169
+  (0.1ms) SAVEPOINT active_record_1
62170
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62172
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
62173
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.735097' AND '2013-12-09 16:14:44.735410')
62174
+  (0.3ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.735097' AND '2013-12-09 16:14:44.735410') GROUP BY gateway
62175
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.735097' AND '2013-12-09 16:14:44.735410')
62176
+  (0.3ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.735097' AND '2013-12-09 16:14:44.735410') GROUP BY status
62177
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.735097' AND '2013-12-09 16:14:44.735410')
62178
+  (0.2ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:24:44.735097' AND '2013-12-09 16:14:44.735410') GROUP BY sms_type
62179
+ Completed 200 OK in 26.9ms (Views: 24.9ms | ActiveRecord: 1.6ms)
62180
+  (0.2ms) rollback transaction
62181
+  (0.1ms) begin transaction
62182
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
62183
+ Filter chain halted as :admin_access_only rendered or redirected
62184
+ Completed 403 Forbidden in 1.2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
62185
+  (0.1ms) rollback transaction
62186
+  (0.1ms) begin transaction
62187
+  (0.1ms) SAVEPOINT active_record_1
62188
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_9"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62190
+  (0.1ms) SAVEPOINT active_record_1
62191
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_2"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62193
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
62194
+ ActionSmser::DeliveryReport Load (0.5ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
62195
+ Completed 200 OK in 13.4ms (Views: 12.0ms | ActiveRecord: 0.5ms)
62196
+  (0.1ms) rollback transaction
62197
+  (0.1ms) begin transaction
62198
+  (0.1ms) rollback transaction
62199
+  (0.1ms) begin transaction
62200
+ 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)
62201
+ 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:0x388b3c0>
62202
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
62203
+ 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:0x388b3c0>
62204
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
62205
+  (0.1ms) rollback transaction
62206
+  (0.1ms) begin transaction
62207
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
62208
+ 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)
62209
+ 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:0x3867d08>
62210
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
62211
+  (0.1ms) SAVEPOINT active_record_1
62212
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62214
+ 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:0x3867d08>
62215
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
62216
+  (0.1ms) SAVEPOINT active_record_1
62217
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62219
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62220
+  (0.2ms) rollback transaction
62221
+  (0.1ms) begin transaction
62222
+ 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)
62223
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x37d83d8>
62224
+ ActionSmser: id_1234
62225
+ id_6666
62226
+  (0.1ms) rollback transaction
62227
+  (0.1ms) begin transaction
62228
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
62229
+ 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)
62230
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x37c4630>
62231
+ ActionSmser: id_1234
62232
+ id_6666
62233
+  (0.1ms) SAVEPOINT active_record_1
62234
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62236
+  (0.1ms) SAVEPOINT active_record_1
62237
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62239
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62240
+  (0.1ms) rollback transaction
62241
+  (0.1ms) begin transaction
62242
+ 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)
62243
+ 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:0x374c8b0>
62244
+ ActionSmser: 100
62245
+ 123456789
62246
+ 0.064
62247
+ 1
62248
+ 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:0x374c8b0>
62249
+ ActionSmser: 100
62250
+ 123456789
62251
+ 0.064
62252
+ 1
62253
+  (0.2ms) rollback transaction
62254
+  (0.1ms) begin transaction
62255
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
62256
+ 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)
62257
+ 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:0x3726908>
62258
+ ActionSmser: 100
62259
+ 123456789
62260
+ 0.064
62261
+ 1
62262
+  (0.1ms) SAVEPOINT active_record_1
62263
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "123456789"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62265
+ 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:0x3726908>
62266
+ ActionSmser: 100
62267
+ 123456789
62268
+ 0.064
62269
+ 1
62270
+  (0.1ms) SAVEPOINT active_record_1
62271
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "123456789"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62273
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62274
+  (0.1ms) rollback transaction
62275
+  (0.4ms) begin transaction
62276
+ 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)
62277
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62278
+  (0.2ms) rollback transaction
62279
+  (0.1ms) begin transaction
62280
+ 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)
62281
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62282
+  (0.1ms) rollback transaction
62283
+  (0.1ms) begin transaction
62284
+ 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)
62285
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62286
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
62287
+ 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)
62288
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62289
+  (0.1ms) SAVEPOINT active_record_1
62290
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "test_array_id_10377036"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62292
+  (0.1ms) SAVEPOINT active_record_1
62293
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "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, 09 Dec 2013 16:24:44 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:24:44: LOCAL_SENT\n"], ["msg_id", "test_array_id_39007616"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:24:44 UTC +00:00]]
62294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62295
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62296
+  (0.1ms) rollback transaction
62297
+  (0.1ms) begin transaction
62298
+  (0.1ms) rollback transaction
62299
+  (0.2ms) begin transaction
62300
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-12-09 18:24:44 +0200
62301
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62302
+ Parameters: {"gateway"=>"example_gateway"}
62303
+ Completed 200 OK in 1.2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
62304
+  (0.1ms) rollback transaction
62305
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
62306
+  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
62307
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
62308
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
62309
+  (0.2ms) begin transaction
62310
+  (0.8ms) 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) 
62311
+  (0.4ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
62312
+ SQL (3.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
62313
+  (0.2ms) commit transaction
62314
+  (0.2ms) begin transaction
62315
+ ---------------------------------------------------------------------------
62316
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
62317
+ ---------------------------------------------------------------------------
62318
+ 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)
62319
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62320
+  (0.2ms) rollback transaction
62321
+  (0.3ms) begin transaction
62322
+ ----------------------------------------------------------------------------
62323
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
62324
+ ----------------------------------------------------------------------------
62325
+ 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)
62326
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62327
+  (0.2ms) rollback transaction
62328
+  (0.2ms) begin transaction
62329
+ --------------------------------------------------------------------------------------------
62330
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
62331
+ --------------------------------------------------------------------------------------------
62332
+  (0.2ms) rollback transaction
62333
+  (0.2ms) begin transaction
62334
+ -------------------------------------------------------------
62335
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
62336
+ -------------------------------------------------------------
62337
+  (0.1ms) rollback transaction
62338
+  (0.2ms) begin transaction
62339
+ ----------------------------------------------------------------------
62340
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
62341
+ ----------------------------------------------------------------------
62342
+  (0.2ms) rollback transaction
62343
+  (0.1ms) begin transaction
62344
+ --------------------------------------------------------------------------------------------------------
62345
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
62346
+ --------------------------------------------------------------------------------------------------------
62347
+  (0.1ms) rollback transaction
62348
+  (0.2ms) begin transaction
62349
+ -----------------------------------------------------------------------------
62350
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
62351
+ -----------------------------------------------------------------------------
62352
+  (0.1ms) rollback transaction
62353
+  (0.1ms) begin transaction
62354
+ ----------------------------------------------------------------
62355
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
62356
+ ----------------------------------------------------------------
62357
+  (0.1ms) rollback transaction
62358
+  (0.2ms) begin transaction
62359
+ --------------------------------------------------------
62360
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
62361
+ --------------------------------------------------------
62362
+  (0.1ms) rollback transaction
62363
+  (0.1ms) begin transaction
62364
+ --------------------------------------------------------------
62365
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
62366
+ --------------------------------------------------------------
62367
+  (0.1ms) rollback transaction
62368
+  (0.1ms) begin transaction
62369
+ -----------------------------------------------
62370
+ ActionSmser::BaseTest: test_should_be_valid_sms
62371
+ -----------------------------------------------
62372
+  (0.1ms) rollback transaction
62373
+  (0.1ms) begin transaction
62374
+ -------------------------------------------------------------------------------------
62375
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
62376
+ -------------------------------------------------------------------------------------
62377
+  (0.1ms) rollback transaction
62378
+  (0.2ms) begin transaction
62379
+ ------------------------------------------------------
62380
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
62381
+ ------------------------------------------------------
62382
+  (0.2ms) rollback transaction
62383
+  (0.1ms) begin transaction
62384
+ ---------------------------------------------------------------------
62385
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
62386
+ ---------------------------------------------------------------------
62387
+  (0.1ms) rollback transaction
62388
+  (0.1ms) begin transaction
62389
+ ----------------------------------------------------------------
62390
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
62391
+ ----------------------------------------------------------------
62392
+  (0.1ms) rollback transaction
62393
+  (0.1ms) begin transaction
62394
+ -------------------------------------------------------------
62395
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
62396
+ -------------------------------------------------------------
62397
+  (0.1ms) rollback transaction
62398
+  (0.1ms) begin transaction
62399
+ ----------------------------------------------------------------------------------------------
62400
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
62401
+ ----------------------------------------------------------------------------------------------
62402
+ 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)
62403
+ ActionSmser: Delivering sms by delayed_job
62404
+  (0.2ms) rollback transaction
62405
+  (0.1ms) begin transaction
62406
+ -------------------------------------------------------------
62407
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
62408
+ -------------------------------------------------------------
62409
+  (0.1ms) rollback transaction
62410
+  (0.2ms) begin transaction
62411
+ -------------------------------------------------------------------
62412
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
62413
+ -------------------------------------------------------------------
62414
+  (0.2ms) rollback transaction
62415
+  (0.2ms) begin transaction
62416
+ ------------------------------------------------------
62417
+ ActionSmser::DeliveryReportTest: test_create_from_save
62418
+ ------------------------------------------------------
62419
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62420
+  (0.1ms) SAVEPOINT active_record_1
62421
+ SQL (12.0ms) 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, 09 Dec 2013 16:37:15 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:37:15: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62422
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62423
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62424
+  (0.2ms) rollback transaction
62425
+  (0.1ms) begin transaction
62426
+ -----------------------------------------------------------------
62427
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
62428
+ -----------------------------------------------------------------
62429
+  (0.1ms) SAVEPOINT active_record_1
62430
+ SQL (0.7ms) 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, 09 Dec 2013 16:37:15 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:37:15: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62432
+  (0.1ms) SAVEPOINT active_record_1
62433
+ SQL (0.8ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["gateway", "some_delivery"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62434
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62435
+ ActionSmser::DeliveryReport Load (0.5ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62436
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-12-09 16:37:15", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-12-09 18:37:15: 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: "2013-12-09 16:37:15", updated_at: "2013-12-09 16:37:15">
62437
+  (0.2ms) SAVEPOINT active_record_1
62438
+ SQL (0.6ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["re_delivered", true], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62440
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62441
+ 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)
62442
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62443
+  (0.1ms) SAVEPOINT active_record_1
62444
+ SQL (0.8ms) 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, 09 Dec 2013 16:37:15 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:37:15: LOCAL_SENT\n"], ["msg_id", "test_array_id_93177784"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62446
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
62447
+ ActionSmser::DeliveryReport Load (0.7ms) 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]]
62448
+ ActionSmser::DeliveryReport Load (0.6ms) 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]]
62449
+  (0.2ms) rollback transaction
62450
+  (0.1ms) begin transaction
62451
+ --------------------------------------------
62452
+ ActionSmser::DeliveryReportTest: test_to_sms
62453
+ --------------------------------------------
62454
+  (0.2ms) SAVEPOINT active_record_1
62455
+ SQL (0.7ms) 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, 09 Dec 2013 16:37:15 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:37:15: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["to", "123"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62457
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62458
+  (0.2ms) rollback transaction
62459
+  (0.1ms) begin transaction
62460
+ -----------------------------------------------------
62461
+ ActionSmser::DeliveryReportTest: test_updating_status
62462
+ -----------------------------------------------------
62463
+  (0.1ms) SAVEPOINT active_record_1
62464
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["log", "2013-12-09 18:37:15: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62466
+  (0.1ms) SAVEPOINT active_record_1
62467
+ SQL (0.6ms) 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, 09 Dec 2013 16:37:15 UTC +00:00], ["log", "2013-12-09 18:37:15: LOCAL_TEST\n2013-12-09 18:37:15: TEST_2\n"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62469
+  (0.1ms) rollback transaction
62470
+  (0.1ms) begin transaction
62471
+ --------------------------------------------------------------------------------
62472
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
62473
+ --------------------------------------------------------------------------------
62474
+  (0.2ms) SAVEPOINT active_record_1
62475
+ SQL (1.2ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["log", "2013-12-09 18:37:15: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62476
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62477
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62478
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
62479
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62480
+ ActionSmser::DeliveryReport Load (0.5ms) 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
62481
+  (0.2ms) SAVEPOINT active_record_1
62482
+ SQL (0.8ms) 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, 09 Dec 2013 16:37:15 UTC +00:00], ["log", "2013-12-09 18:37:15: ORIGINAL_STATUS\n2013-12-09 18:37:15: DELIVERED\n"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62483
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62484
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
62485
+ Rendered text template (0.1ms)
62486
+ Completed 200 OK in 55ms (Views: 1.9ms | ActiveRecord: 1.7ms)
62487
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62488
+  (0.3ms) rollback transaction
62489
+  (0.1ms) begin transaction
62490
+ -------------------------------------------------------------------------------------
62491
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
62492
+ -------------------------------------------------------------------------------------
62493
+  (0.2ms) SAVEPOINT active_record_1
62494
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["log", "2013-12-09 18:37:15: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62496
+  (0.1ms) SAVEPOINT active_record_1
62497
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["log", "2013-12-09 18:37:15: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62499
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62500
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
62501
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62502
+ ActionSmser::DeliveryReport Load (0.5ms) 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
62503
+  (0.2ms) SAVEPOINT active_record_1
62504
+ SQL (0.8ms) 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, 09 Dec 2013 16:37:15 UTC +00:00], ["log", "2013-12-09 18:37:15: ORIGINAL_STATUS\n2013-12-09 18:37:15: DELIVERED\n"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62505
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62506
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
62507
+ ActionSmser::DeliveryReport Load (0.4ms) 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
62508
+  (0.1ms) SAVEPOINT active_record_1
62509
+ SQL (0.6ms) 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, 09 Dec 2013 16:37:15 UTC +00:00], ["log", "2013-12-09 18:37:15: ORIGINAL_STATUS\n2013-12-09 18:37:15: DELIVERED\n"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62511
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
62512
+ Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 2.8ms)
62513
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
62514
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
62515
+  (0.2ms) rollback transaction
62516
+  (0.1ms) begin transaction
62517
+ ----------------------------------------------------------------------------------
62518
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
62519
+ ----------------------------------------------------------------------------------
62520
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62521
+ 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"}}}
62522
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
62523
+  (0.2ms) rollback transaction
62524
+  (0.1ms) begin transaction
62525
+ --------------------------------------------------------------------------
62526
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
62527
+ --------------------------------------------------------------------------
62528
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62529
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
62530
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
62531
+ ActionSmser::DeliveryReport Load (0.5ms) 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
62532
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
62533
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.5ms)
62534
+  (0.2ms) rollback transaction
62535
+  (0.1ms) begin transaction
62536
+ -----------------------------------------------------------------------------------------------------
62537
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
62538
+ -----------------------------------------------------------------------------------------------------
62539
+  (0.1ms) SAVEPOINT active_record_1
62540
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["msg_id", "idtest_5"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62542
+  (0.1ms) SAVEPOINT active_record_1
62543
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62545
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
62546
+  (0.4ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.499393' AND '2013-12-09 16:27:15.499819')
62547
+  (0.4ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.499393' AND '2013-12-09 16:27:15.499819') GROUP BY gateway
62548
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.499393' AND '2013-12-09 16:27:15.499819')
62549
+  (0.3ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.499393' AND '2013-12-09 16:27:15.499819') GROUP BY status
62550
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.499393' AND '2013-12-09 16:27:15.499819')
62551
+  (0.3ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.499393' AND '2013-12-09 16:27:15.499819') GROUP BY sms_type
62552
+ Completed 200 OK in 43ms (Views: 40.2ms | ActiveRecord: 1.8ms)
62553
+  (0.2ms) rollback transaction
62554
+  (0.1ms) begin transaction
62555
+ --------------------------------------------------------------------------------
62556
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
62557
+ --------------------------------------------------------------------------------
62558
+  (0.2ms) SAVEPOINT active_record_1
62559
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62561
+  (0.2ms) SAVEPOINT active_record_1
62562
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62564
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
62565
+  (0.4ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.551817' AND '2013-12-09 16:27:15.552166')
62566
+  (0.3ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.551817' AND '2013-12-09 16:27:15.552166') GROUP BY gateway
62567
+  (0.4ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.551817' AND '2013-12-09 16:27:15.552166')
62568
+  (0.3ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.551817' AND '2013-12-09 16:27:15.552166') GROUP BY status
62569
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.551817' AND '2013-12-09 16:27:15.552166')
62570
+  (0.3ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-12-02 16:37:15.551817' AND '2013-12-09 16:27:15.552166') GROUP BY sms_type
62571
+ Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 1.9ms)
62572
+  (0.2ms) rollback transaction
62573
+  (0.1ms) begin transaction
62574
+ --------------------------------------------------------------------------------------------------------
62575
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
62576
+ --------------------------------------------------------------------------------------------------------
62577
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
62578
+ Filter chain halted as :admin_access_only rendered or redirected
62579
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
62580
+  (0.2ms) rollback transaction
62581
+  (0.1ms) begin transaction
62582
+ -------------------------------------------------------------------------------
62583
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
62584
+ -------------------------------------------------------------------------------
62585
+  (0.1ms) SAVEPOINT active_record_1
62586
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62588
+  (0.1ms) SAVEPOINT active_record_1
62589
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 09 Dec 2013 16:37:15 UTC +00:00]]
62590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62591
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
62592
+ ActionSmser::DeliveryReport Load (0.6ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
62593
+ Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.6ms)
62594
+  (0.2ms) rollback transaction
62595
+  (0.1ms) begin transaction
62596
+ --------------------------------------------------------------------
62597
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
62598
+ --------------------------------------------------------------------
62599
+  (0.2ms) rollback transaction
62600
+  (0.1ms) begin transaction
62601
+ ------------------------------------------------------
62602
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
62603
+ ------------------------------------------------------
62604
+ 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)
62605
+ 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:0x447c1c0>
62606
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
62607
+ 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:0x447c1c0>
62608
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
62609
+  (0.3ms) rollback transaction
62610
+  (0.2ms) begin transaction
62611
+ ---------------------------------------------------------
62612
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
62613
+ ---------------------------------------------------------
62614
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62615
+ 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)
62616
+ 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:0x61e1030>
62617
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
62618
+  (0.2ms) SAVEPOINT active_record_1
62619
+ SQL (0.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, 09 Dec 2013 16:37:16 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-12-09 18:37:16: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00]]
62620
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62621
+ 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:0x61e1030>
62622
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
62623
+  (0.1ms) SAVEPOINT active_record_1
62624
+ SQL (0.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, 09 Dec 2013 16:37:16 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-12-09 18:37:16: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00]]
62625
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62626
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62627
+  (0.2ms) rollback transaction
62628
+  (0.2ms) begin transaction
62629
+ -----------------------------------------------------------
62630
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
62631
+ -----------------------------------------------------------
62632
+ 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)
62633
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x30d8f88>
62634
+ ActionSmser: id_1234
62635
+ id_6666
62636
+  (0.2ms) rollback transaction
62637
+  (0.1ms) begin transaction
62638
+ --------------------------------------------------------------
62639
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
62640
+ --------------------------------------------------------------
62641
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62642
+ 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)
62643
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4450340>
62644
+ ActionSmser: id_1234
62645
+ id_6666
62646
+  (0.2ms) SAVEPOINT active_record_1
62647
+ SQL (0.7ms) 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, 09 Dec 2013 16:37:16 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-12-09 18:37:16: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00]]
62648
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62649
+  (0.1ms) SAVEPOINT active_record_1
62650
+ SQL (0.7ms) 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, 09 Dec 2013 16:37:16 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-12-09 18:37:16: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00]]
62651
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62652
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62653
+  (0.2ms) rollback transaction
62654
+  (0.2ms) begin transaction
62655
+ ---------------------------------------------------------
62656
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
62657
+ ---------------------------------------------------------
62658
+ 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)
62659
+ 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:0x50ec518>
62660
+ ActionSmser: 100
62661
+ 123456789
62662
+ 0.064
62663
+ 1
62664
+ 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:0x50ec518>
62665
+ ActionSmser: 100
62666
+ 123456789
62667
+ 0.064
62668
+ 1
62669
+  (0.2ms) rollback transaction
62670
+  (0.1ms) begin transaction
62671
+ ------------------------------------------------------------
62672
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
62673
+ ------------------------------------------------------------
62674
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62675
+ 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)
62676
+ 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:0x3eb5b60>
62677
+ ActionSmser: 100
62678
+ 123456789
62679
+ 0.064
62680
+ 1
62681
+  (0.2ms) SAVEPOINT active_record_1
62682
+ SQL (0.8ms) 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, 09 Dec 2013 16:37:16 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2013-12-09 18:37:16: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00]]
62683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62684
+ 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:0x3eb5b60>
62685
+ ActionSmser: 100
62686
+ 123456789
62687
+ 0.064
62688
+ 1
62689
+  (0.1ms) SAVEPOINT active_record_1
62690
+ 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 ümläüts."], ["created_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2013-12-09 18:37:16: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00]]
62691
+  (0.2ms) RELEASE SAVEPOINT active_record_1
62692
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62693
+  (0.2ms) rollback transaction
62694
+  (0.2ms) begin transaction
62695
+ --------------------------------------------------------
62696
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
62697
+ --------------------------------------------------------
62698
+ 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)
62699
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62700
+  (0.2ms) rollback transaction
62701
+  (0.2ms) begin transaction
62702
+ ----------------------------------------------------------
62703
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
62704
+ ----------------------------------------------------------
62705
+ 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)
62706
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62707
+  (0.2ms) rollback transaction
62708
+  (0.1ms) begin transaction
62709
+ -------------------------------------------------------------
62710
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
62711
+ -------------------------------------------------------------
62712
+ 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)
62713
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62714
+  (0.3ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62715
+ 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)
62716
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
62717
+  (0.1ms) SAVEPOINT active_record_1
62718
+ SQL (0.8ms) 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, 09 Dec 2013 16:37:16 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:37:16: LOCAL_SENT\n"], ["msg_id", "test_array_id_26595464"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00]]
62719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62720
+  (0.1ms) SAVEPOINT active_record_1
62721
+ 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, 09 Dec 2013 16:37:16 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-12-09 18:37:16: LOCAL_SENT\n"], ["msg_id", "test_array_id_83627851"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 09 Dec 2013 16:37:16 UTC +00:00]]
62722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62723
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
62724
+  (0.2ms) rollback transaction
62725
+  (0.1ms) begin transaction
62726
+ ---------------------------
62727
+ ActionSmserTest: test_truth
62728
+ ---------------------------
62729
+  (0.2ms) rollback transaction
62730
+  (0.1ms) begin transaction
62731
+ ---------------------------------------------------------
62732
+ NavigationTest: test_basic_gateway_commit_delivery_report
62733
+ ---------------------------------------------------------
62734
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-12-09 18:37:16 +0200
62735
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
62736
+ Parameters: {"gateway"=>"example_gateway"}
62737
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
62738
+  (0.2ms) rollback transaction