action_smser 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64ee3e61c1ebd90acca096dd4c0a3e097933b51b
4
- data.tar.gz: 36be01ce826211dac647aef66c2f3996def3ca10
3
+ metadata.gz: fe13db0fb291d54f3800445b9d2ad414b1771893
4
+ data.tar.gz: e1f31fd38168dac2270601d51a65b1b99f3c536b
5
5
  SHA512:
6
- metadata.gz: b7e6cafb41fb6ced9e5ba8ecff7d461c39b0b3f758a0b06b4908183de590a85bfc03469b0bd25406b82764c3e0958cea2cf4f6ad6dd9d3d46038b325179abad9
7
- data.tar.gz: 8afb551eef6a7210906e6e61a32b2ea788f882bc2942ded8f9ad6f86e595a43d18c698e6c8320ad252f70a74fd06c351bd8934f6263ddd2f5e1c8cf5fea02048
6
+ metadata.gz: f6cec9eb7d9675cbf0e233fa1c7b2c12316f6db5d2071a6e31cc12bff47e9dae61ddd3953235930342d89dadafa30144bc0b5651daa221c772553bf3b706c7d2
7
+ data.tar.gz: 8b89d9e9b5275465ea83a9643566653df80423eedbb537275756fe96079384ac3f39adca294fa0c4c0f126f8a9b48e2455cc9f29d621e6e2a958689acb6cf33b
@@ -1,3 +1,3 @@
1
1
  module ActionSmser
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
@@ -31903,3 +31903,1383 @@ ActionSmser: Delivering sms by delayed_job
31903
31903
  ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
31904
31904
  -------------------------------------------------------------
31905
31905
   (0.0ms) rollback transaction
31906
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
31907
+  (0.1ms) begin transaction
31908
+ -----------------------------------------------------------------------------
31909
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
31910
+ -----------------------------------------------------------------------------
31911
+  (0.0ms) rollback transaction
31912
+  (0.0ms) begin transaction
31913
+ -----------------------------------------------
31914
+ ActionSmser::BaseTest: test_should_be_valid_sms
31915
+ -----------------------------------------------
31916
+  (0.0ms) rollback transaction
31917
+  (0.0ms) begin transaction
31918
+ -------------------------------------------------------------
31919
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
31920
+ -------------------------------------------------------------
31921
+  (0.0ms) rollback transaction
31922
+  (0.0ms) begin transaction
31923
+ -------------------------------------------------------------
31924
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
31925
+ -------------------------------------------------------------
31926
+  (0.1ms) rollback transaction
31927
+  (0.1ms) begin transaction
31928
+ ---------------------------------------------------------------------
31929
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
31930
+ ---------------------------------------------------------------------
31931
+  (0.1ms) rollback transaction
31932
+  (0.0ms) begin transaction
31933
+ ----------------------------------------------------------------------------
31934
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
31935
+ ----------------------------------------------------------------------------
31936
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
31937
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
31938
+  (0.0ms) rollback transaction
31939
+  (0.0ms) begin transaction
31940
+ --------------------------------------------------------------
31941
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
31942
+ --------------------------------------------------------------
31943
+  (0.0ms) rollback transaction
31944
+  (0.0ms) begin transaction
31945
+ ----------------------------------------------------------------------
31946
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
31947
+ ----------------------------------------------------------------------
31948
+  (0.0ms) rollback transaction
31949
+  (0.0ms) begin transaction
31950
+ ------------------------------------------------------
31951
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
31952
+ ------------------------------------------------------
31953
+  (0.0ms) rollback transaction
31954
+  (0.0ms) begin transaction
31955
+ ---------------------------------------------------------------------------
31956
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
31957
+ ---------------------------------------------------------------------------
31958
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
31959
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
31960
+  (0.0ms) rollback transaction
31961
+  (0.0ms) begin transaction
31962
+ --------------------------------------------------------------------------------------------------------
31963
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
31964
+ --------------------------------------------------------------------------------------------------------
31965
+  (0.0ms) rollback transaction
31966
+  (0.0ms) begin transaction
31967
+ --------------------------------------------------------
31968
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
31969
+ --------------------------------------------------------
31970
+  (0.0ms) rollback transaction
31971
+  (0.0ms) begin transaction
31972
+ --------------------------------------------------------------------------------------------
31973
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
31974
+ --------------------------------------------------------------------------------------------
31975
+  (0.0ms) rollback transaction
31976
+  (0.0ms) begin transaction
31977
+ -------------------------------------------------------------------------------------
31978
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
31979
+ -------------------------------------------------------------------------------------
31980
+  (0.0ms) rollback transaction
31981
+  (0.0ms) begin transaction
31982
+ ----------------------------------------------------------------
31983
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
31984
+ ----------------------------------------------------------------
31985
+  (0.0ms) rollback transaction
31986
+  (0.0ms) begin transaction
31987
+ ----------------------------------------------------------------
31988
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
31989
+ ----------------------------------------------------------------
31990
+  (0.0ms) rollback transaction
31991
+  (0.0ms) begin transaction
31992
+ ---------------------------------------------------------------------
31993
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(request)
31994
+ ---------------------------------------------------------------------
31995
+  (0.0ms) rollback transaction
31996
+  (0.0ms) begin transaction
31997
+ ------------------------------------------------------------------------------
31998
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
31999
+ ------------------------------------------------------------------------------
32000
+  (0.1ms) rollback transaction
32001
+  (0.0ms) begin transaction
32002
+ ------------------------------------------------------
32003
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
32004
+ ------------------------------------------------------
32005
+ 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)
32006
+ 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:0x4b110a8>
32007
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
32008
+ 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:0x4b110a8>
32009
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
32010
+  (0.0ms) rollback transaction
32011
+  (0.0ms) begin transaction
32012
+ ---------------------------------------------------------
32013
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
32014
+ ---------------------------------------------------------
32015
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32016
+ 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)
32017
+ 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:0x4af7ae0>
32018
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
32019
+  (0.1ms) SAVEPOINT active_record_1
32020
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.957391"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 12:45:13.959727"], ["updated_at", "2015-04-22 12:45:13.959727"]]
32021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32022
+ 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:0x4af7ae0>
32023
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
32024
+  (0.0ms) SAVEPOINT active_record_1
32025
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.963121"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 12:45:13.963545"], ["updated_at", "2015-04-22 12:45:13.963545"]]
32026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32027
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32028
+  (0.1ms) rollback transaction
32029
+  (0.1ms) begin transaction
32030
+ ---------------------------
32031
+ ActionSmserTest: test_truth
32032
+ ---------------------------
32033
+  (0.0ms) rollback transaction
32034
+  (0.0ms) begin transaction
32035
+ --------------------------------------------------------------------------------------------------
32036
+ ActionSmser::SmstradeTest: test_should_only_receive_numbers_not_prepended_with_zeros_or_plus_signs
32037
+ --------------------------------------------------------------------------------------------------
32038
+  (0.1ms) rollback transaction
32039
+  (0.0ms) begin transaction
32040
+ --------------------------------------------------------------------------------
32041
+ ActionSmser::SmstradeTest: test_should_append_00_to_phone_numbers_before_sending
32042
+ --------------------------------------------------------------------------------
32043
+ 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)
32044
+ ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x47899f8>
32045
+ ActionSmser: 100
32046
+ 123456789
32047
+ 0.064
32048
+ 1
32049
+ ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x47899f8>
32050
+ ActionSmser: 100
32051
+ 123456789
32052
+ 0.064
32053
+ 1
32054
+  (0.1ms) rollback transaction
32055
+  (0.0ms) begin transaction
32056
+ ---------------------------------------------------------
32057
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
32058
+ ---------------------------------------------------------
32059
+ 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)
32060
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4761e80>
32061
+ ActionSmser: 100
32062
+ 123456789
32063
+ 0.064
32064
+ 1
32065
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4761e80>
32066
+ ActionSmser: 100
32067
+ 123456789
32068
+ 0.064
32069
+ 1
32070
+  (0.0ms) rollback transaction
32071
+  (0.0ms) begin transaction
32072
+ ------------------------------------------------------------
32073
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
32074
+ ------------------------------------------------------------
32075
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32076
+ 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)
32077
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x473fdf8>
32078
+ ActionSmser: 100
32079
+ 123456789
32080
+ 0.064
32081
+ 1
32082
+  (0.0ms) SAVEPOINT active_record_1
32083
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004915112341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.972130"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 12:45:13.972573"], ["updated_at", "2015-04-22 12:45:13.972573"]]
32084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32085
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x473fdf8>
32086
+ ActionSmser: 100
32087
+ 123456789
32088
+ 0.064
32089
+ 1
32090
+  (0.0ms) SAVEPOINT active_record_1
32091
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004917812341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.973852"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 12:45:13.974142"], ["updated_at", "2015-04-22 12:45:13.974142"]]
32092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32093
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32094
+  (0.1ms) rollback transaction
32095
+  (0.0ms) begin transaction
32096
+ -----------------------------------------------------------
32097
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
32098
+ -----------------------------------------------------------
32099
+ 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)
32100
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x46b5e50>
32101
+ ActionSmser: id_1234
32102
+ id_6666
32103
+  (0.0ms) rollback transaction
32104
+  (0.0ms) begin transaction
32105
+ --------------------------------------------------------------
32106
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
32107
+ --------------------------------------------------------------
32108
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32109
+ 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)
32110
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4694bb0>
32111
+ ActionSmser: id_1234
32112
+ id_6666
32113
+  (0.0ms) SAVEPOINT active_record_1
32114
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "id_1234"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.978344"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 12:45:13.978673"], ["updated_at", "2015-04-22 12:45:13.978673"]]
32115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32116
+  (0.0ms) SAVEPOINT active_record_1
32117
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "id_6666"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.979729"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 12:45:13.980009"], ["updated_at", "2015-04-22 12:45:13.980009"]]
32118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32119
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32120
+  (0.1ms) rollback transaction
32121
+  (0.0ms) begin transaction
32122
+ ----------------------------------------------------------------------------------------------
32123
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
32124
+ ----------------------------------------------------------------------------------------------
32125
+ 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)
32126
+ ActionSmser: Delivering sms by delayed_job
32127
+  (0.0ms) rollback transaction
32128
+  (0.0ms) begin transaction
32129
+ -------------------------------------------------------------
32130
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
32131
+ -------------------------------------------------------------
32132
+  (0.0ms) rollback transaction
32133
+  (0.1ms) begin transaction
32134
+ ---------------------------------------------------------
32135
+ NavigationTest: test_basic_gateway_commit_delivery_report
32136
+ ---------------------------------------------------------
32137
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2015-04-22 15:45:13 +0300
32138
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32139
+ Parameters: {"gateway"=>"example_gateway"}
32140
+ Rendered text template (0.0ms)
32141
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
32142
+  (0.1ms) rollback transaction
32143
+  (0.1ms) begin transaction
32144
+ --------------------------------------------------------
32145
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
32146
+ --------------------------------------------------------
32147
+ 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)
32148
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32149
+  (0.0ms) rollback transaction
32150
+  (0.0ms) begin transaction
32151
+ ----------------------------------------------------------
32152
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
32153
+ ----------------------------------------------------------
32154
+ 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)
32155
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32156
+  (0.0ms) rollback transaction
32157
+  (0.0ms) begin transaction
32158
+ -------------------------------------------------------------
32159
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
32160
+ -------------------------------------------------------------
32161
+ 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)
32162
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32163
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32164
+ 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)
32165
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32166
+  (0.0ms) SAVEPOINT active_record_1
32167
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "test_array_id_34965443"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.027852"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.028345"], ["updated_at", "2015-04-22 12:45:14.028345"]]
32168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32169
+  (0.0ms) SAVEPOINT active_record_1
32170
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "test_array_id_47199764"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.029574"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.029889"], ["updated_at", "2015-04-22 12:45:14.029889"]]
32171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32172
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32173
+  (0.1ms) rollback transaction
32174
+  (0.1ms) begin transaction
32175
+ -----------------------------------------------------
32176
+ ActionSmser::DeliveryReportTest: test_updating_status
32177
+ -----------------------------------------------------
32178
+  (0.0ms) SAVEPOINT active_record_1
32179
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", "LOCAL_TEST"], ["status_updated_at", "2015-04-22 12:45:14.032041"], ["log", "2015-04-22 15:45:14: LOCAL_TEST\n"], ["created_at", "2015-04-22 12:45:14.032363"], ["updated_at", "2015-04-22 12:45:14.032363"]]
32180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32181
+  (0.0ms) SAVEPOINT active_record_1
32182
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "TEST_2"], ["status_updated_at", "2015-04-22 12:45:14.033234"], ["log", "2015-04-22 15:45:14: LOCAL_TEST\n2015-04-22 15:45:14: TEST_2\n"], ["updated_at", "2015-04-22 12:45:14.033511"], ["id", 1]]
32183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32184
+  (0.1ms) rollback transaction
32185
+  (0.0ms) begin transaction
32186
+ --------------------------------------------
32187
+ ActionSmser::DeliveryReportTest: test_to_sms
32188
+ --------------------------------------------
32189
+  (0.0ms) SAVEPOINT active_record_1
32190
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.037880"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.038228"], ["updated_at", "2015-04-22 12:45:14.038228"]]
32191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32192
+ 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]]
32193
+  (0.1ms) rollback transaction
32194
+  (0.0ms) begin transaction
32195
+ -----------------------------------------------------------------
32196
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
32197
+ -----------------------------------------------------------------
32198
+  (0.0ms) SAVEPOINT active_record_1
32199
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.042115"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.042499"], ["updated_at", "2015-04-22 12:45:14.042499"]]
32200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32201
+  (0.0ms) SAVEPOINT active_record_1
32202
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["gateway", "some_delivery"], ["updated_at", "2015-04-22 12:45:14.044049"], ["id", 1]]
32203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32204
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32205
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2015-04-22 12:45:14", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2015-04-22 15:45:14: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2015-04-22 12:45:14", updated_at: "2015-04-22 12:45:14">
32206
+  (0.0ms) SAVEPOINT active_record_1
32207
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["re_delivered", "t"], ["updated_at", "2015-04-22 12:45:14.045552"], ["id", 1]]
32208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32209
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32210
+ 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)
32211
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32212
+  (0.0ms) SAVEPOINT active_record_1
32213
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "re_delivery_of_delivery_report_id", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["re_delivery_of_delivery_report_id", 1], ["to", "123"], ["msg_id", "test_array_id_90045397"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.046673"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.046997"], ["updated_at", "2015-04-22 12:45:14.046997"]]
32214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32215
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
32216
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
32217
+ 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]]
32218
+  (0.1ms) rollback transaction
32219
+  (0.0ms) begin transaction
32220
+ ------------------------------------------------------
32221
+ ActionSmser::DeliveryReportTest: test_create_from_save
32222
+ ------------------------------------------------------
32223
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32224
+  (0.0ms) SAVEPOINT active_record_1
32225
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.065609"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.065994"], ["updated_at", "2015-04-22 12:45:14.065994"]]
32226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32227
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32228
+  (0.1ms) rollback transaction
32229
+  (0.0ms) begin transaction
32230
+ -------------------------------------------------------------------
32231
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
32232
+ -------------------------------------------------------------------
32233
+  (0.0ms) rollback transaction
32234
+  (0.0ms) begin transaction
32235
+ ----------------------------------------------------------------------------------
32236
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
32237
+ ----------------------------------------------------------------------------------
32238
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32239
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"gateway_not_found"}
32240
+ Rendered text template (0.0ms)
32241
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
32242
+  (0.1ms) rollback transaction
32243
+  (0.0ms) begin transaction
32244
+ --------------------------------------------------------------------------------
32245
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
32246
+ --------------------------------------------------------------------------------
32247
+  (0.0ms) SAVEPOINT active_record_1
32248
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_2"], ["created_at", "2015-04-22 12:45:14.073131"], ["updated_at", "2015-04-22 12:45:14.073131"]]
32249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32250
+  (0.0ms) SAVEPOINT active_record_1
32251
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_7"], ["created_at", "2015-04-22 12:45:14.074246"], ["updated_at", "2015-04-22 12:45:14.074246"]]
32252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32253
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32254
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921')
32255
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921') GROUP BY "action_smser_delivery_reports"."gateway"
32256
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921')
32257
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921') GROUP BY "action_smser_delivery_reports"."status"
32258
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921')
32259
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921') GROUP BY "action_smser_delivery_reports"."sms_type"
32260
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (8.5ms)
32261
+ Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.5ms)
32262
+  (0.1ms) rollback transaction
32263
+  (0.0ms) begin transaction
32264
+ --------------------------------------------------------------------------------
32265
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
32266
+ --------------------------------------------------------------------------------
32267
+  (0.0ms) SAVEPOINT active_record_1
32268
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:45:14.088642"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:45:14.089062"], ["updated_at", "2015-04-22 12:45:14.089062"]]
32269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32270
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32271
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
32272
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32273
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
32274
+  (0.0ms) SAVEPOINT active_record_1
32275
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:45:14.092519"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n2015-04-22 15:45:14: DELIVERED\n"], ["updated_at", "2015-04-22 12:45:14.092902"], ["id", 1]]
32276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32277
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
32278
+ Rendered text template (0.0ms)
32279
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
32280
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32281
+  (0.1ms) rollback transaction
32282
+  (0.0ms) begin transaction
32283
+ -------------------------------------------------------------------------------
32284
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
32285
+ -------------------------------------------------------------------------------
32286
+  (0.1ms) SAVEPOINT active_record_1
32287
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_8"], ["created_at", "2015-04-22 12:45:14.095501"], ["updated_at", "2015-04-22 12:45:14.095501"]]
32288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32289
+  (0.0ms) SAVEPOINT active_record_1
32290
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_3"], ["created_at", "2015-04-22 12:45:14.096546"], ["updated_at", "2015-04-22 12:45:14.096546"]]
32291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32292
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
32293
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
32294
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/list.html.erb within layouts/action_smser/delivery_reports (2.3ms)
32295
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
32296
+  (0.1ms) rollback transaction
32297
+  (0.0ms) begin transaction
32298
+ --------------------------------------------------------------------------
32299
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
32300
+ --------------------------------------------------------------------------
32301
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32302
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
32303
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32304
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "wrongid"]]
32305
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
32306
+ Rendered text template (0.0ms)
32307
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
32308
+  (0.1ms) rollback transaction
32309
+  (0.0ms) begin transaction
32310
+ -------------------------------------------------------------------------------------
32311
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
32312
+ -------------------------------------------------------------------------------------
32313
+  (0.0ms) SAVEPOINT active_record_1
32314
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:45:14.106127"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:45:14.106534"], ["updated_at", "2015-04-22 12:45:14.106534"]]
32315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32316
+  (0.0ms) SAVEPOINT active_record_1
32317
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:45:14.107514"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:45:14.107797"], ["updated_at", "2015-04-22 12:45:14.107797"]]
32318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32319
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32320
+ Parameters: {"DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
32321
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32322
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
32323
+  (0.0ms) SAVEPOINT active_record_1
32324
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:45:14.110309"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n2015-04-22 15:45:14: DELIVERED\n"], ["updated_at", "2015-04-22 12:45:14.110700"], ["id", 1]]
32325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32326
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
32327
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "99999999999999999"]]
32328
+  (0.0ms) SAVEPOINT active_record_1
32329
+ SQL (0.0ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:45:14.112052"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n2015-04-22 15:45:14: DELIVERED\n"], ["updated_at", "2015-04-22 12:45:14.112370"], ["id", 2]]
32330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32331
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
32332
+ Rendered text template (0.0ms)
32333
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.3ms)
32334
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32335
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
32336
+  (0.1ms) rollback transaction
32337
+  (0.0ms) begin transaction
32338
+ --------------------------------------------------------------------------------------------------------
32339
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
32340
+ --------------------------------------------------------------------------------------------------------
32341
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32342
+ Rendered text template (0.0ms)
32343
+ Filter chain halted as :admin_access_only rendered or redirected
32344
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
32345
+  (0.0ms) rollback transaction
32346
+  (0.1ms) begin transaction
32347
+ -----------------------------------------------------------------------------------------------------
32348
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
32349
+ -----------------------------------------------------------------------------------------------------
32350
+  (0.0ms) SAVEPOINT active_record_1
32351
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_3"], ["created_at", "2015-04-22 12:45:14.117216"], ["updated_at", "2015-04-22 12:45:14.117216"]]
32352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32353
+  (0.0ms) SAVEPOINT active_record_1
32354
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_0"], ["created_at", "2015-04-22 12:45:14.118328"], ["updated_at", "2015-04-22 12:45:14.118328"]]
32355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32356
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32357
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331')
32358
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331') GROUP BY "action_smser_delivery_reports"."gateway"
32359
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331')
32360
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331') GROUP BY "action_smser_delivery_reports"."status"
32361
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331')
32362
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331') GROUP BY "action_smser_delivery_reports"."sms_type"
32363
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (4.4ms)
32364
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.4ms)
32365
+  (0.1ms) rollback transaction
32366
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32367
+  (0.1ms) begin transaction
32368
+ -------------------------------------------------------------------
32369
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
32370
+ -------------------------------------------------------------------
32371
+  (0.1ms) rollback transaction
32372
+  (0.0ms) begin transaction
32373
+ -----------------------------------------------------
32374
+ ActionSmser::DeliveryReportTest: test_updating_status
32375
+ -----------------------------------------------------
32376
+  (0.0ms) SAVEPOINT active_record_1
32377
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", "LOCAL_TEST"], ["status_updated_at", "2015-04-22 12:48:22.363749"], ["log", "2015-04-22 15:48:22: LOCAL_TEST\n"], ["created_at", "2015-04-22 12:48:22.365359"], ["updated_at", "2015-04-22 12:48:22.365359"]]
32378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32379
+  (0.0ms) SAVEPOINT active_record_1
32380
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "TEST_2"], ["status_updated_at", "2015-04-22 12:48:22.368330"], ["log", "2015-04-22 15:48:22: LOCAL_TEST\n2015-04-22 15:48:22: TEST_2\n"], ["updated_at", "2015-04-22 12:48:22.368710"], ["id", 1]]
32381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32382
+  (0.1ms) rollback transaction
32383
+  (0.0ms) begin transaction
32384
+ ------------------------------------------------------
32385
+ ActionSmser::DeliveryReportTest: test_create_from_save
32386
+ ------------------------------------------------------
32387
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32388
+  (0.1ms) SAVEPOINT active_record_1
32389
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.372939"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.373345"], ["updated_at", "2015-04-22 12:48:22.373345"]]
32390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32391
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32392
+  (0.1ms) rollback transaction
32393
+  (0.0ms) begin transaction
32394
+ -----------------------------------------------------------------
32395
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
32396
+ -----------------------------------------------------------------
32397
+  (0.0ms) SAVEPOINT active_record_1
32398
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.375488"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.375849"], ["updated_at", "2015-04-22 12:48:22.375849"]]
32399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32400
+  (0.0ms) SAVEPOINT active_record_1
32401
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["gateway", "some_delivery"], ["updated_at", "2015-04-22 12:48:22.377133"], ["id", 1]]
32402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32403
+ 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]]
32404
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2015-04-22 12:48:22", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2015-04-22 15:48:22: 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: "2015-04-22 12:48:22", updated_at: "2015-04-22 12:48:22">
32405
+  (0.0ms) SAVEPOINT active_record_1
32406
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["re_delivered", "t"], ["updated_at", "2015-04-22 12:48:22.381248"], ["id", 1]]
32407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32408
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32409
+ 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)
32410
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32411
+  (0.0ms) SAVEPOINT active_record_1
32412
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "re_delivery_of_delivery_report_id", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["re_delivery_of_delivery_report_id", 1], ["to", "123"], ["msg_id", "test_array_id_37804369"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.383023"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.383432"], ["updated_at", "2015-04-22 12:48:22.383432"]]
32413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32414
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
32415
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
32416
+ 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]]
32417
+  (0.1ms) rollback transaction
32418
+  (0.1ms) begin transaction
32419
+ --------------------------------------------
32420
+ ActionSmser::DeliveryReportTest: test_to_sms
32421
+ --------------------------------------------
32422
+  (0.0ms) SAVEPOINT active_record_1
32423
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.395564"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.396027"], ["updated_at", "2015-04-22 12:48:22.396027"]]
32424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32425
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32426
+  (0.1ms) rollback transaction
32427
+  (0.1ms) begin transaction
32428
+ -----------------------------------------------------------
32429
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
32430
+ -----------------------------------------------------------
32431
+ 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)
32432
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x36dcda8>
32433
+ ActionSmser: id_1234
32434
+ id_6666
32435
+  (0.0ms) rollback transaction
32436
+  (0.0ms) begin transaction
32437
+ --------------------------------------------------------------
32438
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
32439
+ --------------------------------------------------------------
32440
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32441
+ 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)
32442
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x36b9448>
32443
+ ActionSmser: id_1234
32444
+ id_6666
32445
+  (0.0ms) SAVEPOINT active_record_1
32446
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "id_1234"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.402220"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 12:48:22.402606"], ["updated_at", "2015-04-22 12:48:22.402606"]]
32447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32448
+  (0.0ms) SAVEPOINT active_record_1
32449
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "id_6666"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.403781"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 12:48:22.404085"], ["updated_at", "2015-04-22 12:48:22.404085"]]
32450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32451
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32452
+  (0.1ms) rollback transaction
32453
+  (0.0ms) begin transaction
32454
+ --------------------------------------------------------------------------------
32455
+ ActionSmser::SmstradeTest: test_should_append_00_to_phone_numbers_before_sending
32456
+ --------------------------------------------------------------------------------
32457
+ 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)
32458
+ ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x3616d88>
32459
+ ActionSmser: 100
32460
+ 123456789
32461
+ 0.064
32462
+ 1
32463
+ ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x3616d88>
32464
+ ActionSmser: 100
32465
+ 123456789
32466
+ 0.064
32467
+ 1
32468
+  (0.0ms) rollback transaction
32469
+  (0.0ms) begin transaction
32470
+ --------------------------------------------------------------------------------------------------
32471
+ ActionSmser::SmstradeTest: test_should_only_receive_numbers_not_prepended_with_zeros_or_plus_signs
32472
+ --------------------------------------------------------------------------------------------------
32473
+  (0.0ms) rollback transaction
32474
+  (0.0ms) begin transaction
32475
+ ------------------------------------------------------------
32476
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
32477
+ ------------------------------------------------------------
32478
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32479
+ 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)
32480
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x35da608>
32481
+ ActionSmser: 100
32482
+ 123456789
32483
+ 0.064
32484
+ 1
32485
+  (0.1ms) SAVEPOINT active_record_1
32486
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004915112341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.409680"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 12:48:22.410122"], ["updated_at", "2015-04-22 12:48:22.410122"]]
32487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32488
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x35da608>
32489
+ ActionSmser: 100
32490
+ 123456789
32491
+ 0.064
32492
+ 1
32493
+  (0.0ms) SAVEPOINT active_record_1
32494
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004917812341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.411562"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 12:48:22.411951"], ["updated_at", "2015-04-22 12:48:22.411951"]]
32495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32496
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32497
+  (0.1ms) rollback transaction
32498
+  (0.0ms) begin transaction
32499
+ ---------------------------------------------------------
32500
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
32501
+ ---------------------------------------------------------
32502
+ 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)
32503
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x355dc98>
32504
+ ActionSmser: 100
32505
+ 123456789
32506
+ 0.064
32507
+ 1
32508
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x355dc98>
32509
+ ActionSmser: 100
32510
+ 123456789
32511
+ 0.064
32512
+ 1
32513
+  (0.1ms) rollback transaction
32514
+  (0.1ms) begin transaction
32515
+ ----------------------------------------------------------
32516
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
32517
+ ----------------------------------------------------------
32518
+ 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)
32519
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32520
+  (0.0ms) rollback transaction
32521
+  (0.0ms) begin transaction
32522
+ -------------------------------------------------------------
32523
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
32524
+ -------------------------------------------------------------
32525
+ 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)
32526
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32527
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32528
+ 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)
32529
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32530
+  (0.0ms) SAVEPOINT active_record_1
32531
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "test_array_id_67374145"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.417570"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.417997"], ["updated_at", "2015-04-22 12:48:22.417997"]]
32532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32533
+  (0.0ms) SAVEPOINT active_record_1
32534
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "test_array_id_61844339"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.419243"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.419597"], ["updated_at", "2015-04-22 12:48:22.419597"]]
32535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32536
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32537
+  (0.1ms) rollback transaction
32538
+  (0.0ms) begin transaction
32539
+ --------------------------------------------------------
32540
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
32541
+ --------------------------------------------------------
32542
+ 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)
32543
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32544
+  (0.0ms) rollback transaction
32545
+  (0.0ms) begin transaction
32546
+ -------------------------------------------------------------
32547
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
32548
+ -------------------------------------------------------------
32549
+  (0.0ms) rollback transaction
32550
+  (0.0ms) begin transaction
32551
+ ----------------------------------------------------------------------------------------------
32552
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
32553
+ ----------------------------------------------------------------------------------------------
32554
+ 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)
32555
+ ActionSmser: Delivering sms by delayed_job
32556
+  (0.0ms) rollback transaction
32557
+  (0.0ms) begin transaction
32558
+ ------------------------------------------------------------------------------
32559
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
32560
+ ------------------------------------------------------------------------------
32561
+  (0.0ms) rollback transaction
32562
+  (0.0ms) begin transaction
32563
+ ---------------------------------------------------------
32564
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
32565
+ ---------------------------------------------------------
32566
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32567
+ 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)
32568
+ 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:0x34429d0>
32569
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
32570
+  (0.0ms) SAVEPOINT active_record_1
32571
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.425946"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 12:48:22.426333"], ["updated_at", "2015-04-22 12:48:22.426333"]]
32572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32573
+ 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:0x34429d0>
32574
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
32575
+  (0.0ms) SAVEPOINT active_record_1
32576
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.427706"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 12:48:22.428054"], ["updated_at", "2015-04-22 12:48:22.428054"]]
32577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32578
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
32579
+  (0.1ms) rollback transaction
32580
+  (0.0ms) begin transaction
32581
+ ---------------------------------------------------------------------
32582
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(request)
32583
+ ---------------------------------------------------------------------
32584
+  (0.0ms) rollback transaction
32585
+  (0.0ms) begin transaction
32586
+ ------------------------------------------------------
32587
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
32588
+ ------------------------------------------------------
32589
+ 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)
32590
+ 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:0x33a5900>
32591
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
32592
+ 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:0x33a5900>
32593
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
32594
+  (0.0ms) rollback transaction
32595
+  (0.1ms) begin transaction
32596
+ ---------------------------------------------------------
32597
+ NavigationTest: test_basic_gateway_commit_delivery_report
32598
+ ---------------------------------------------------------
32599
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2015-04-22 15:48:22 +0300
32600
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32601
+ Parameters: {"gateway"=>"example_gateway"}
32602
+ Rendered text template (0.0ms)
32603
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
32604
+  (0.1ms) rollback transaction
32605
+  (0.0ms) begin transaction
32606
+ ---------------------------
32607
+ ActionSmserTest: test_truth
32608
+ ---------------------------
32609
+  (0.0ms) rollback transaction
32610
+  (0.0ms) begin transaction
32611
+ --------------------------------------------------------------------------
32612
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
32613
+ --------------------------------------------------------------------------
32614
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32615
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
32616
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32617
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "wrongid"]]
32618
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
32619
+ Rendered text template (0.0ms)
32620
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
32621
+  (0.0ms) rollback transaction
32622
+  (0.0ms) begin transaction
32623
+ --------------------------------------------------------------------------------
32624
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
32625
+ --------------------------------------------------------------------------------
32626
+  (0.0ms) SAVEPOINT active_record_1
32627
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:48:22.480580"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:48:22.480994"], ["updated_at", "2015-04-22 12:48:22.480994"]]
32628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32629
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32630
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
32631
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32632
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
32633
+  (0.0ms) SAVEPOINT active_record_1
32634
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:48:22.484119"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n2015-04-22 15:48:22: DELIVERED\n"], ["updated_at", "2015-04-22 12:48:22.484540"], ["id", 1]]
32635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32636
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
32637
+ Rendered text template (0.0ms)
32638
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
32639
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32640
+  (0.1ms) rollback transaction
32641
+  (0.0ms) begin transaction
32642
+ -------------------------------------------------------------------------------------
32643
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
32644
+ -------------------------------------------------------------------------------------
32645
+  (0.0ms) SAVEPOINT active_record_1
32646
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:48:22.487396"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:48:22.487756"], ["updated_at", "2015-04-22 12:48:22.487756"]]
32647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32648
+  (0.0ms) SAVEPOINT active_record_1
32649
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:48:22.488800"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:48:22.489219"], ["updated_at", "2015-04-22 12:48:22.489219"]]
32650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32651
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32652
+ Parameters: {"DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
32653
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32654
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
32655
+  (0.1ms) SAVEPOINT active_record_1
32656
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:48:22.491999"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n2015-04-22 15:48:22: DELIVERED\n"], ["updated_at", "2015-04-22 12:48:22.492525"], ["id", 1]]
32657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32658
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
32659
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "99999999999999999"]]
32660
+  (0.0ms) SAVEPOINT active_record_1
32661
+ SQL (0.0ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:48:22.494025"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n2015-04-22 15:48:22: DELIVERED\n"], ["updated_at", "2015-04-22 12:48:22.494430"], ["id", 2]]
32662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32663
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
32664
+ Rendered text template (0.0ms)
32665
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)
32666
+ 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]]
32667
+ 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]]
32668
+  (0.1ms) rollback transaction
32669
+  (0.0ms) begin transaction
32670
+ --------------------------------------------------------------------------------------------------------
32671
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
32672
+ --------------------------------------------------------------------------------------------------------
32673
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32674
+ Rendered text template (0.0ms)
32675
+ Filter chain halted as :admin_access_only rendered or redirected
32676
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
32677
+  (0.0ms) rollback transaction
32678
+  (0.0ms) begin transaction
32679
+ ----------------------------------------------------------------------------------
32680
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
32681
+ ----------------------------------------------------------------------------------
32682
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32683
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"gateway_not_found"}
32684
+ Rendered text template (0.0ms)
32685
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
32686
+  (0.0ms) rollback transaction
32687
+  (0.0ms) begin transaction
32688
+ --------------------------------------------------------------------------------
32689
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
32690
+ --------------------------------------------------------------------------------
32691
+  (0.0ms) SAVEPOINT active_record_1
32692
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_7"], ["created_at", "2015-04-22 12:48:22.501853"], ["updated_at", "2015-04-22 12:48:22.501853"]]
32693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32694
+  (0.0ms) SAVEPOINT active_record_1
32695
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_7"], ["created_at", "2015-04-22 12:48:22.503296"], ["updated_at", "2015-04-22 12:48:22.503296"]]
32696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32697
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32698
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085')
32699
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085') GROUP BY "action_smser_delivery_reports"."gateway"
32700
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085')
32701
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085') GROUP BY "action_smser_delivery_reports"."status"
32702
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085')
32703
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085') GROUP BY "action_smser_delivery_reports"."sms_type"
32704
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (9.2ms)
32705
+ Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.5ms)
32706
+  (0.1ms) rollback transaction
32707
+  (0.0ms) begin transaction
32708
+ -------------------------------------------------------------------------------
32709
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
32710
+ -------------------------------------------------------------------------------
32711
+  (0.0ms) SAVEPOINT active_record_1
32712
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_1"], ["created_at", "2015-04-22 12:48:22.519180"], ["updated_at", "2015-04-22 12:48:22.519180"]]
32713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32714
+  (0.0ms) SAVEPOINT active_record_1
32715
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_1"], ["created_at", "2015-04-22 12:48:22.520470"], ["updated_at", "2015-04-22 12:48:22.520470"]]
32716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32717
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
32718
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
32719
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/list.html.erb within layouts/action_smser/delivery_reports (2.6ms)
32720
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
32721
+  (0.1ms) rollback transaction
32722
+  (0.0ms) begin transaction
32723
+ -----------------------------------------------------------------------------------------------------
32724
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
32725
+ -----------------------------------------------------------------------------------------------------
32726
+  (0.0ms) SAVEPOINT active_record_1
32727
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_2"], ["created_at", "2015-04-22 12:48:22.528027"], ["updated_at", "2015-04-22 12:48:22.528027"]]
32728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32729
+  (0.0ms) SAVEPOINT active_record_1
32730
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_4"], ["created_at", "2015-04-22 12:48:22.529182"], ["updated_at", "2015-04-22 12:48:22.529182"]]
32731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32732
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32733
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463')
32734
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463') GROUP BY "action_smser_delivery_reports"."gateway"
32735
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463')
32736
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463') GROUP BY "action_smser_delivery_reports"."status"
32737
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463')
32738
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463') GROUP BY "action_smser_delivery_reports"."sms_type"
32739
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (5.0ms)
32740
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
32741
+  (0.1ms) rollback transaction
32742
+  (0.0ms) begin transaction
32743
+ ----------------------------------------------------------------
32744
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
32745
+ ----------------------------------------------------------------
32746
+  (0.0ms) rollback transaction
32747
+  (0.0ms) begin transaction
32748
+ -----------------------------------------------
32749
+ ActionSmser::BaseTest: test_should_be_valid_sms
32750
+ -----------------------------------------------
32751
+  (0.0ms) rollback transaction
32752
+  (0.0ms) begin transaction
32753
+ --------------------------------------------------------------------------------------------
32754
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
32755
+ --------------------------------------------------------------------------------------------
32756
+  (0.0ms) rollback transaction
32757
+  (0.0ms) begin transaction
32758
+ ---------------------------------------------------------------------------
32759
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
32760
+ ---------------------------------------------------------------------------
32761
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
32762
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32763
+  (0.1ms) rollback transaction
32764
+  (0.0ms) begin transaction
32765
+ ----------------------------------------------------------------
32766
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
32767
+ ----------------------------------------------------------------
32768
+  (0.0ms) rollback transaction
32769
+  (0.0ms) begin transaction
32770
+ -------------------------------------------------------------------------------------
32771
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
32772
+ -------------------------------------------------------------------------------------
32773
+  (0.0ms) rollback transaction
32774
+  (0.0ms) begin transaction
32775
+ -------------------------------------------------------------
32776
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
32777
+ -------------------------------------------------------------
32778
+  (0.0ms) rollback transaction
32779
+  (0.0ms) begin transaction
32780
+ ----------------------------------------------------------------------------
32781
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
32782
+ ----------------------------------------------------------------------------
32783
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
32784
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32785
+  (0.1ms) rollback transaction
32786
+  (0.0ms) begin transaction
32787
+ ---------------------------------------------------------------------
32788
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
32789
+ ---------------------------------------------------------------------
32790
+  (0.0ms) rollback transaction
32791
+  (0.0ms) begin transaction
32792
+ --------------------------------------------------------
32793
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
32794
+ --------------------------------------------------------
32795
+  (0.0ms) rollback transaction
32796
+  (0.0ms) begin transaction
32797
+ --------------------------------------------------------------------------------------------------------
32798
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
32799
+ --------------------------------------------------------------------------------------------------------
32800
+  (0.0ms) rollback transaction
32801
+  (0.0ms) begin transaction
32802
+ --------------------------------------------------------------
32803
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
32804
+ --------------------------------------------------------------
32805
+  (0.0ms) rollback transaction
32806
+  (0.1ms) begin transaction
32807
+ ------------------------------------------------------
32808
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
32809
+ ------------------------------------------------------
32810
+  (0.0ms) rollback transaction
32811
+  (0.0ms) begin transaction
32812
+ -------------------------------------------------------------
32813
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
32814
+ -------------------------------------------------------------
32815
+  (0.0ms) rollback transaction
32816
+  (0.1ms) begin transaction
32817
+ -----------------------------------------------------------------------------
32818
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
32819
+ -----------------------------------------------------------------------------
32820
+  (0.0ms) rollback transaction
32821
+  (0.0ms) begin transaction
32822
+ ----------------------------------------------------------------------
32823
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
32824
+ ----------------------------------------------------------------------
32825
+  (0.0ms) rollback transaction
32826
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32827
+  (0.1ms) begin transaction
32828
+ --------------------------------------------------------------------------------
32829
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
32830
+ --------------------------------------------------------------------------------
32831
+  (0.1ms) SAVEPOINT active_record_1
32832
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 13:15:36.280405"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 13:15:36.282007"], ["updated_at", "2015-04-22 13:15:36.282007"]]
32833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32834
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32835
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
32836
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32837
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
32838
+  (0.0ms) SAVEPOINT active_record_1
32839
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 13:15:36.292045"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n2015-04-22 16:15:36: DELIVERED\n"], ["updated_at", "2015-04-22 13:15:36.292606"], ["id", 1]]
32840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32841
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
32842
+ Rendered text template (0.0ms)
32843
+ Completed 200 OK in 9ms (Views: 2.8ms | ActiveRecord: 0.5ms)
32844
+ 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]]
32845
+  (0.1ms) rollback transaction
32846
+  (0.0ms) begin transaction
32847
+ --------------------------------------------------------------------------
32848
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
32849
+ --------------------------------------------------------------------------
32850
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32851
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
32852
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32853
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "wrongid"]]
32854
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
32855
+ Rendered text template (0.0ms)
32856
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
32857
+  (0.0ms) rollback transaction
32858
+  (0.0ms) begin transaction
32859
+ -----------------------------------------------------------------------------------------------------
32860
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
32861
+ -----------------------------------------------------------------------------------------------------
32862
+  (0.0ms) SAVEPOINT active_record_1
32863
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_8"], ["created_at", "2015-04-22 13:15:36.301586"], ["updated_at", "2015-04-22 13:15:36.301586"]]
32864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32865
+  (0.0ms) SAVEPOINT active_record_1
32866
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_6"], ["created_at", "2015-04-22 13:15:36.302701"], ["updated_at", "2015-04-22 13:15:36.302701"]]
32867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32868
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32869
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273')
32870
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273') GROUP BY "action_smser_delivery_reports"."gateway"
32871
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273')
32872
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273') GROUP BY "action_smser_delivery_reports"."status"
32873
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273')
32874
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273') GROUP BY "action_smser_delivery_reports"."sms_type"
32875
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (11.3ms)
32876
+ Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.4ms)
32877
+  (0.1ms) rollback transaction
32878
+  (0.0ms) begin transaction
32879
+ -------------------------------------------------------------------------------------
32880
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
32881
+ -------------------------------------------------------------------------------------
32882
+  (0.0ms) SAVEPOINT active_record_1
32883
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 13:15:36.318268"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 13:15:36.318676"], ["updated_at", "2015-04-22 13:15:36.318676"]]
32884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32885
+  (0.0ms) SAVEPOINT active_record_1
32886
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 13:15:36.319756"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 13:15:36.320034"], ["updated_at", "2015-04-22 13:15:36.320034"]]
32887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32888
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32889
+ Parameters: {"DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
32890
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
32891
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
32892
+  (0.2ms) SAVEPOINT active_record_1
32893
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 13:15:36.322900"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n2015-04-22 16:15:36: DELIVERED\n"], ["updated_at", "2015-04-22 13:15:36.324332"], ["id", 1]]
32894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32895
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
32896
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "99999999999999999"]]
32897
+  (0.0ms) SAVEPOINT active_record_1
32898
+ SQL (0.0ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 13:15:36.325897"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n2015-04-22 16:15:36: DELIVERED\n"], ["updated_at", "2015-04-22 13:15:36.326231"], ["id", 2]]
32899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32900
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
32901
+ Rendered text template (0.0ms)
32902
+ Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.6ms)
32903
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32904
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
32905
+  (0.1ms) rollback transaction
32906
+  (0.1ms) begin transaction
32907
+ ----------------------------------------------------------------------------------
32908
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
32909
+ ----------------------------------------------------------------------------------
32910
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
32911
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"gateway_not_found"}
32912
+ Rendered text template (0.0ms)
32913
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
32914
+  (0.0ms) rollback transaction
32915
+  (0.0ms) begin transaction
32916
+ --------------------------------------------------------------------------------
32917
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
32918
+ --------------------------------------------------------------------------------
32919
+  (0.0ms) SAVEPOINT active_record_1
32920
+ SQL (3.5ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_1"], ["created_at", "2015-04-22 13:15:36.330913"], ["updated_at", "2015-04-22 13:15:36.330913"]]
32921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32922
+  (0.1ms) SAVEPOINT active_record_1
32923
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_1"], ["created_at", "2015-04-22 13:15:36.335694"], ["updated_at", "2015-04-22 13:15:36.335694"]]
32924
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32925
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32926
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027')
32927
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027') GROUP BY "action_smser_delivery_reports"."gateway"
32928
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027')
32929
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027') GROUP BY "action_smser_delivery_reports"."status"
32930
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027')
32931
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027') GROUP BY "action_smser_delivery_reports"."sms_type"
32932
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (6.9ms)
32933
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.6ms)
32934
+  (0.1ms) rollback transaction
32935
+  (0.0ms) begin transaction
32936
+ --------------------------------------------------------------------------------------------------------
32937
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
32938
+ --------------------------------------------------------------------------------------------------------
32939
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
32940
+ Rendered text template (0.0ms)
32941
+ Filter chain halted as :admin_access_only rendered or redirected
32942
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
32943
+  (0.0ms) rollback transaction
32944
+  (0.0ms) begin transaction
32945
+ -------------------------------------------------------------------------------
32946
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
32947
+ -------------------------------------------------------------------------------
32948
+  (0.0ms) SAVEPOINT active_record_1
32949
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_8"], ["created_at", "2015-04-22 13:15:36.349555"], ["updated_at", "2015-04-22 13:15:36.349555"]]
32950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32951
+  (0.0ms) SAVEPOINT active_record_1
32952
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_4"], ["created_at", "2015-04-22 13:15:36.350841"], ["updated_at", "2015-04-22 13:15:36.350841"]]
32953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32954
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
32955
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
32956
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/list.html.erb within layouts/action_smser/delivery_reports (6.0ms)
32957
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.2ms)
32958
+  (0.1ms) rollback transaction
32959
+  (0.1ms) begin transaction
32960
+ ---------------------------
32961
+ ActionSmserTest: test_truth
32962
+ ---------------------------
32963
+  (0.0ms) rollback transaction
32964
+  (0.0ms) begin transaction
32965
+ -----------------------------------------------------
32966
+ ActionSmser::DeliveryReportTest: test_updating_status
32967
+ -----------------------------------------------------
32968
+  (0.0ms) SAVEPOINT active_record_1
32969
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", "LOCAL_TEST"], ["status_updated_at", "2015-04-22 13:15:36.362383"], ["log", "2015-04-22 16:15:36: LOCAL_TEST\n"], ["created_at", "2015-04-22 13:15:36.362785"], ["updated_at", "2015-04-22 13:15:36.362785"]]
32970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32971
+  (0.0ms) SAVEPOINT active_record_1
32972
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "TEST_2"], ["status_updated_at", "2015-04-22 13:15:36.368607"], ["log", "2015-04-22 16:15:36: LOCAL_TEST\n2015-04-22 16:15:36: TEST_2\n"], ["updated_at", "2015-04-22 13:15:36.369001"], ["id", 1]]
32973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32974
+  (0.1ms) rollback transaction
32975
+  (0.0ms) begin transaction
32976
+ -----------------------------------------------------------------
32977
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
32978
+ -----------------------------------------------------------------
32979
+  (0.0ms) SAVEPOINT active_record_1
32980
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.370677"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.371016"], ["updated_at", "2015-04-22 13:15:36.371016"]]
32981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32982
+  (0.1ms) SAVEPOINT active_record_1
32983
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["gateway", "some_delivery"], ["updated_at", "2015-04-22 13:15:36.372730"], ["id", 1]]
32984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32985
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32986
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2015-04-22 13:15:36", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2015-04-22 16:15:36: 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: "2015-04-22 13:15:36", updated_at: "2015-04-22 13:15:36">
32987
+  (0.0ms) SAVEPOINT active_record_1
32988
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["re_delivered", "t"], ["updated_at", "2015-04-22 13:15:36.375529"], ["id", 1]]
32989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32990
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32991
+ 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)
32992
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
32993
+  (0.0ms) SAVEPOINT active_record_1
32994
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "re_delivery_of_delivery_report_id", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["re_delivery_of_delivery_report_id", 1], ["to", "123"], ["msg_id", "test_array_id_3107476"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.376878"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.377208"], ["updated_at", "2015-04-22 13:15:36.377208"]]
32995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32996
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
32997
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
32998
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
32999
+  (0.1ms) rollback transaction
33000
+  (0.1ms) begin transaction
33001
+ -------------------------------------------------------------------
33002
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
33003
+ -------------------------------------------------------------------
33004
+  (0.0ms) rollback transaction
33005
+  (0.0ms) begin transaction
33006
+ ------------------------------------------------------
33007
+ ActionSmser::DeliveryReportTest: test_create_from_save
33008
+ ------------------------------------------------------
33009
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33010
+  (0.0ms) SAVEPOINT active_record_1
33011
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.386770"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.387125"], ["updated_at", "2015-04-22 13:15:36.387125"]]
33012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33013
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33014
+  (0.1ms) rollback transaction
33015
+  (0.0ms) begin transaction
33016
+ --------------------------------------------
33017
+ ActionSmser::DeliveryReportTest: test_to_sms
33018
+ --------------------------------------------
33019
+  (0.1ms) SAVEPOINT active_record_1
33020
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.389048"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.389810"], ["updated_at", "2015-04-22 13:15:36.389810"]]
33021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33022
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
33023
+  (0.1ms) rollback transaction
33024
+  (0.0ms) begin transaction
33025
+ ------------------------------------------------------------
33026
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
33027
+ ------------------------------------------------------------
33028
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33029
+ 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)
33030
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4520b08>
33031
+ ActionSmser: 100
33032
+ 123456789
33033
+ 0.064
33034
+ 1
33035
+  (0.0ms) SAVEPOINT active_record_1
33036
+ SQL (17.3ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004915112341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.394557"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 13:15:36.394895"], ["updated_at", "2015-04-22 13:15:36.394895"]]
33037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33038
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4520b08>
33039
+ ActionSmser: 100
33040
+ 123456789
33041
+ 0.064
33042
+ 1
33043
+  (0.0ms) SAVEPOINT active_record_1
33044
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004917812341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.413931"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 13:15:36.414268"], ["updated_at", "2015-04-22 13:15:36.414268"]]
33045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33046
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33047
+  (0.1ms) rollback transaction
33048
+  (0.0ms) begin transaction
33049
+ --------------------------------------------------------------------------------
33050
+ ActionSmser::SmstradeTest: test_should_append_00_to_phone_numbers_before_sending
33051
+ --------------------------------------------------------------------------------
33052
+ 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)
33053
+ ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x44c24e0>
33054
+ ActionSmser: 100
33055
+ 123456789
33056
+ 0.064
33057
+ 1
33058
+ ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x44c24e0>
33059
+ ActionSmser: 100
33060
+ 123456789
33061
+ 0.064
33062
+ 1
33063
+  (0.0ms) rollback transaction
33064
+  (0.0ms) begin transaction
33065
+ ---------------------------------------------------------
33066
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
33067
+ ---------------------------------------------------------
33068
+ 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)
33069
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x448c688>
33070
+ ActionSmser: 100
33071
+ 123456789
33072
+ 0.064
33073
+ 1
33074
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x448c688>
33075
+ ActionSmser: 100
33076
+ 123456789
33077
+ 0.064
33078
+ 1
33079
+  (0.0ms) rollback transaction
33080
+  (0.0ms) begin transaction
33081
+ --------------------------------------------------------------------------------------------------
33082
+ ActionSmser::SmstradeTest: test_should_only_receive_numbers_not_prepended_with_zeros_or_plus_signs
33083
+ --------------------------------------------------------------------------------------------------
33084
+  (0.0ms) rollback transaction
33085
+  (0.0ms) begin transaction
33086
+ ----------------------------------------------------------------------------------------------
33087
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
33088
+ ----------------------------------------------------------------------------------------------
33089
+ 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)
33090
+ ActionSmser: Delivering sms by delayed_job
33091
+  (0.0ms) rollback transaction
33092
+  (0.0ms) begin transaction
33093
+ -------------------------------------------------------------
33094
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
33095
+ -------------------------------------------------------------
33096
+  (0.0ms) rollback transaction
33097
+  (0.0ms) begin transaction
33098
+ ---------------------------------------------------------
33099
+ NavigationTest: test_basic_gateway_commit_delivery_report
33100
+ ---------------------------------------------------------
33101
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2015-04-22 16:15:36 +0300
33102
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
33103
+ Parameters: {"gateway"=>"example_gateway"}
33104
+ Rendered text template (0.0ms)
33105
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
33106
+  (0.1ms) rollback transaction
33107
+  (0.1ms) begin transaction
33108
+ -------------------------------------------------------------
33109
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
33110
+ -------------------------------------------------------------
33111
+ 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)
33112
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33113
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33114
+ 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)
33115
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33116
+  (0.0ms) SAVEPOINT active_record_1
33117
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "test_array_id_13804019"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.429251"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.429647"], ["updated_at", "2015-04-22 13:15:36.429647"]]
33118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33119
+  (0.0ms) SAVEPOINT active_record_1
33120
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "test_array_id_31859348"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.430876"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.431244"], ["updated_at", "2015-04-22 13:15:36.431244"]]
33121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33122
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33123
+  (0.1ms) rollback transaction
33124
+  (0.0ms) begin transaction
33125
+ --------------------------------------------------------
33126
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
33127
+ --------------------------------------------------------
33128
+ 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)
33129
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33130
+  (0.0ms) rollback transaction
33131
+  (0.0ms) begin transaction
33132
+ ----------------------------------------------------------
33133
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
33134
+ ----------------------------------------------------------
33135
+ 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)
33136
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33137
+  (0.0ms) rollback transaction
33138
+  (0.1ms) begin transaction
33139
+ ----------------------------------------------------------------------------
33140
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
33141
+ ----------------------------------------------------------------------------
33142
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
33143
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33144
+  (0.0ms) rollback transaction
33145
+  (0.0ms) begin transaction
33146
+ ---------------------------------------------------------------------
33147
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
33148
+ ---------------------------------------------------------------------
33149
+  (0.0ms) rollback transaction
33150
+  (0.1ms) begin transaction
33151
+ ----------------------------------------------------------------
33152
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
33153
+ ----------------------------------------------------------------
33154
+  (0.0ms) rollback transaction
33155
+  (0.0ms) begin transaction
33156
+ --------------------------------------------------------------------------------------------
33157
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
33158
+ --------------------------------------------------------------------------------------------
33159
+  (0.0ms) rollback transaction
33160
+  (0.0ms) begin transaction
33161
+ --------------------------------------------------------------------------------------------------------
33162
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
33163
+ --------------------------------------------------------------------------------------------------------
33164
+  (0.0ms) rollback transaction
33165
+  (0.0ms) begin transaction
33166
+ -------------------------------------------------------------
33167
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
33168
+ -------------------------------------------------------------
33169
+  (0.0ms) rollback transaction
33170
+  (0.0ms) begin transaction
33171
+ --------------------------------------------------------------
33172
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
33173
+ --------------------------------------------------------------
33174
+  (0.0ms) rollback transaction
33175
+  (0.0ms) begin transaction
33176
+ -------------------------------------------------------------
33177
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
33178
+ -------------------------------------------------------------
33179
+  (0.0ms) rollback transaction
33180
+  (0.1ms) begin transaction
33181
+ ----------------------------------------------------------------
33182
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
33183
+ ----------------------------------------------------------------
33184
+  (0.1ms) rollback transaction
33185
+  (0.1ms) begin transaction
33186
+ --------------------------------------------------------
33187
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
33188
+ --------------------------------------------------------
33189
+  (0.1ms) rollback transaction
33190
+  (0.0ms) begin transaction
33191
+ -----------------------------------------------------------------------------
33192
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
33193
+ -----------------------------------------------------------------------------
33194
+  (0.1ms) rollback transaction
33195
+  (0.0ms) begin transaction
33196
+ -------------------------------------------------------------------------------------
33197
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
33198
+ -------------------------------------------------------------------------------------
33199
+  (0.1ms) rollback transaction
33200
+  (0.0ms) begin transaction
33201
+ ---------------------------------------------------------------------------
33202
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
33203
+ ---------------------------------------------------------------------------
33204
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
33205
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33206
+  (0.1ms) rollback transaction
33207
+  (0.1ms) begin transaction
33208
+ -----------------------------------------------
33209
+ ActionSmser::BaseTest: test_should_be_valid_sms
33210
+ -----------------------------------------------
33211
+  (0.1ms) rollback transaction
33212
+  (0.1ms) begin transaction
33213
+ ----------------------------------------------------------------------
33214
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
33215
+ ----------------------------------------------------------------------
33216
+  (0.1ms) rollback transaction
33217
+  (0.1ms) begin transaction
33218
+ ------------------------------------------------------
33219
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
33220
+ ------------------------------------------------------
33221
+  (0.1ms) rollback transaction
33222
+  (0.1ms) begin transaction
33223
+ ---------------------------------------------------------------------
33224
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(request)
33225
+ ---------------------------------------------------------------------
33226
+  (0.1ms) rollback transaction
33227
+  (0.1ms) begin transaction
33228
+ ------------------------------------------------------------------------------
33229
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
33230
+ ------------------------------------------------------------------------------
33231
+  (0.1ms) rollback transaction
33232
+  (0.0ms) begin transaction
33233
+ ------------------------------------------------------
33234
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
33235
+ ------------------------------------------------------
33236
+ 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)
33237
+ 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:0x40ebb78>
33238
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
33239
+ 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:0x40ebb78>
33240
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
33241
+  (0.1ms) rollback transaction
33242
+  (0.0ms) begin transaction
33243
+ ---------------------------------------------------------
33244
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
33245
+ ---------------------------------------------------------
33246
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33247
+ 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)
33248
+ 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:0x40c74d0>
33249
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
33250
+  (0.0ms) SAVEPOINT active_record_1
33251
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.451780"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 13:15:36.452199"], ["updated_at", "2015-04-22 13:15:36.452199"]]
33252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33253
+ 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:0x40c74d0>
33254
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
33255
+  (0.0ms) SAVEPOINT active_record_1
33256
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.453526"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 13:15:36.453874"], ["updated_at", "2015-04-22 13:15:36.453874"]]
33257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33258
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33259
+  (0.1ms) rollback transaction
33260
+  (0.1ms) begin transaction
33261
+ -----------------------------------------------------------
33262
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
33263
+ -----------------------------------------------------------
33264
+ 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)
33265
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x401bea0>
33266
+ ActionSmser: id_1234
33267
+ id_6666
33268
+  (0.1ms) rollback transaction
33269
+  (0.0ms) begin transaction
33270
+ --------------------------------------------------------------
33271
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
33272
+ --------------------------------------------------------------
33273
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33274
+ 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)
33275
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3ffe710>
33276
+ ActionSmser: id_1234
33277
+ id_6666
33278
+  (0.0ms) SAVEPOINT active_record_1
33279
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "id_1234"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.459145"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 13:15:36.459591"], ["updated_at", "2015-04-22 13:15:36.459591"]]
33280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33281
+  (0.0ms) SAVEPOINT active_record_1
33282
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "id_6666"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.460824"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 13:15:36.461164"], ["updated_at", "2015-04-22 13:15:36.461164"]]
33283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33284
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33285
+  (0.1ms) rollback transaction