smster 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af96cedecd26b65e0a292285c08f7519f4be9cef
4
- data.tar.gz: 81b09997cbfb167341efbb4c9c82f92799521fef
3
+ metadata.gz: 5b8fdbd8765029fc596f9e57a805d1a0aa447700
4
+ data.tar.gz: 05d2aa2be015b4f8c2f3da8a380c78c756ba552f
5
5
  SHA512:
6
- metadata.gz: 44cc304142539838405736b46ee1391cdd061442fa8df7efb90a49e2e0ff663e4c9242173efb3936f8694705f0d214dc6d2e77a688430d223b237a64b073926f
7
- data.tar.gz: ef8a83566cd523670ccd7b6c2c537d969f363f71874583f53650647c1929050c87e4ce58ae442b049047e0d91be93a8375a574528c58eb197798062050217e06
6
+ metadata.gz: 0e9d1c06b35deddab86e0bd9af9f943312507b0470ffb3596685e9ab69427539b65540461eac5c4a7193d9fbf9cc5100878353ea7a94a1df6cbf4966408f34b6
7
+ data.tar.gz: 6d225c10f117735b82a6a4565117a5b4f89806c24194109aaf3e576e2b1204c495382d92aacc6f3c2d30bcae42e175bc43d484dea09cb5af39ee9ccbec058c6a
@@ -4,6 +4,7 @@ SMS sending service through different providers with maximum convenience.
4
4
  ===== Supported
5
5
  * {Nexmo}[https://www.nexmo.com/]
6
6
  * {Clickatell}[https://www.clickatell.com/]
7
+ * {Smsru}[http://sms.ru/]
7
8
 
8
9
  == Setup
9
10
  Add gem:
@@ -17,8 +18,7 @@ Install:
17
18
  Add config of your provider into config/initializers/smster.rb.
18
19
 
19
20
  And let's start!
20
- Sms::Nexmo.create(text: 'sms text', to: phone_number)
21
- Sms::Clickatell.create(text: 'sms text', to: phone_number)
21
+ Sms::$Provider.create(text: 'sms text', to: phone_number) # Replace "$Provider" to "Nexmo", "Clickatell", etc..
22
22
 
23
23
  == Callbacks
24
24
  Add to routes, setup provider callbacks and get sms statuses:
@@ -28,6 +28,6 @@ Add to routes, setup provider callbacks and get sms statuses:
28
28
  Please use the {issue tracker}[https://github.com/IlyaDonskikh/smster/issues].
29
29
 
30
30
  == Thanks
31
- 1. Mickhail Zelenin for the idea for this gem.
31
+ 1. {Mickhail Zelenin}[https://github.com/MioGreen] for the idea for this gem.
32
32
  2. Egor Kiselev for help in creation of this manual.
33
33
  3. Alexey Bandar for the recommendation of the first provider.
@@ -0,0 +1,26 @@
1
+ class Smster::SmsruController < ApplicationController
2
+ skip_before_filter :verify_authenticity_token
3
+
4
+ def callback
5
+ smsru_params.each do |data|
6
+ data = data.split(/\n/)
7
+ if data[0] == 'sms_status'
8
+ code = data[1]
9
+ status = data[2]
10
+ @sms = Sms::Smsru.find_by!(code: code)
11
+
12
+ @sms.status_message = status
13
+ @sms.save
14
+
15
+ @sms.accept! if status.to_s == '100'
16
+ end
17
+ end
18
+
19
+ render nothing: true, status: 100
20
+ end
21
+
22
+ private
23
+ def smsru_params
24
+ params.require(:data)
25
+ end
26
+ end
@@ -5,4 +5,7 @@ Smster.configure do |config|
5
5
 
6
6
  ## Clickatell
7
7
  config.clickatell_authorization_code = ""
8
+
9
+ ## Smsru
10
+ config.smsru_api_id = ""
8
11
  end
@@ -3,6 +3,7 @@ require "smster/configuration"
3
3
  require 'smster/sms'
4
4
  require 'smster/sms/clickatell'
5
5
  require 'smster/sms/nexmo'
6
+ require 'smster/sms/smsru'
6
7
 
7
8
  module Smster
8
9
  class Engine < Rails::Engine; end
@@ -1,11 +1,12 @@
1
1
  module Smster
2
2
  class Configuration
3
- attr_accessor :nexmo_key, :nexmo_sekret, :clickatell_authorization_code
3
+ attr_accessor :nexmo_key, :nexmo_sekret, :clickatell_authorization_code, :smsru_api_id
4
4
 
5
5
  def initialize
6
6
  @nexmo_key = ""
7
7
  @nexmo_sekret = ""
8
8
  @clickatell_authorization_code = ""
9
+ @smsru_api_id = ""
9
10
  end
10
11
  end
11
12
  end
@@ -21,7 +21,10 @@ class Sms::Nexmo < Sms
21
21
  :api_secret => api_secret)
22
22
 
23
23
  json_response = JSON.parse(response)
24
+
24
25
  error_text = json_response['messages'][0]['error-text']
26
+ raise error_text if error_text
27
+
25
28
  json_response['messages'][0]['message-id']
26
29
  end
27
30
 
@@ -30,11 +33,6 @@ class Sms::Nexmo < Sms
30
33
  self.status = STATUS_CODES[:sent]
31
34
  end
32
35
 
33
- if error_text.present?
34
- self.status = STATUS_CODES[:failed]
35
- self.status_message = error_text
36
- end
37
-
38
36
  self.save
39
37
  rescue => e
40
38
  logger.debug("Error #{e}")
@@ -0,0 +1,40 @@
1
+ class Sms::Smsru < Sms
2
+ def send_sms
3
+ config = Smster.configuration
4
+ api_id = config.smsru_api_id
5
+
6
+ text = self.text.tr(" ", "+")
7
+ phone = to.gsub(/\D/, '')
8
+
9
+ api_message_id = if self.mode == 'test'
10
+ logger.debug("Mode: #{mode}. To: #{phone}, text: #{text}")
11
+ self.id
12
+ else
13
+ response = RestClient.post('http://sms.ru/sms/send',
14
+ "api_id" => api_id,
15
+ "text" => text,
16
+ "to" => phone.to_s,
17
+ "from" => name
18
+ )
19
+
20
+ case response.include?('100')
21
+ when true then result = (/\n(.*)\n/).match(response)[1]
22
+ else raise response
23
+ end
24
+
25
+ result
26
+ end
27
+
28
+ if api_message_id.present?
29
+ self.code = api_message_id
30
+ self.status = STATUS_CODES[:sent]
31
+ end
32
+
33
+ self.save
34
+ rescue => e
35
+ logger.debug("Error #{e}")
36
+ self.status = STATUS_CODES[:failed]
37
+ self.status_message = e.to_s
38
+ self.save
39
+ end
40
+ end
@@ -1,3 +1,3 @@
1
1
  module Smster
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -0,0 +1,23 @@
1
+ require 'test_helper'
2
+
3
+ class Smster::SmsruControllerTest < ActionController::TestCase
4
+ def setup
5
+ @text = "simple text"
6
+ @number = (0...7).map { (1..9).to_a.sample }.join
7
+ @provider = Sms::Smsru
8
+ end
9
+
10
+ test 'callback' do
11
+ delivered_code = Sms::STATUS_CODES[:delivered]
12
+ sms = @provider.create(text: @text, to: @number)
13
+
14
+ post :callback, {
15
+ "data" => ["sms_status\n#{sms.code}\n100"]
16
+ }
17
+
18
+ response = @response.status
19
+ sms = assigns(:sms)
20
+ assert_equal 100, @response.status
21
+ assert_equal delivered_code, sms.status
22
+ end
23
+ end
@@ -5,4 +5,7 @@ Smster.configure do |config|
5
5
 
6
6
  ## Clickatell
7
7
  config.clickatell_authorization_code = "I._aJiuBBZW6K8A_V6jh34tJLt7eghOlMrgsiCrK3ze63hxFpe8n5.7PY1PNStxLIn"
8
+
9
+ ## Smsru
10
+ config.smsru_api_id = "1b9812ac9-c035-04f4-45e6-2ad22d375cb9"
8
11
  end
@@ -1,4 +1,5 @@
1
1
  Rails.application.routes.draw do
2
2
  post 'smster/clickatell/callback'
3
3
  post 'smster/nexmo/callback'
4
+ post 'smster/smsru/callback'
4
5
  end
@@ -139,3 +139,133 @@ Error 401 Unauthorized: {"error":{"code":"001","description":"Authentication fai
139
139
  SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["to", "79676031236"], ["text", "12321"], ["created_at", "2015-03-31 05:12:12.339970"], ["updated_at", "2015-03-31 05:12:12.339970"]]
140
140
  SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["to", "79676031236"], ["text", "12321"], ["created_at", "2015-03-31 05:12:12.339970"], ["updated_at", "2015-03-31 05:12:12.339970"], ["id", 23], ["code", "461fc14daf302da9bf07329c7c8eab7e"], ["id", 23]]
141
141
   (1.1ms) commit transaction
142
+  (0.1ms) begin transaction
143
+ SQL (1.3ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:31:43.306497"], ["updated_at", "2015-04-01 04:31:43.306497"]]
144
+ Error 757: unexpected token at '301'
145
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:31:43.306497"], ["updated_at", "2015-04-01 04:31:43.306497"], ["id", 24], ["status_message", "757: unexpected token at '301'"], ["id", 24]]
146
+  (1.1ms) commit transaction
147
+  (0.1ms) begin transaction
148
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:32:53.853036"], ["updated_at", "2015-04-01 04:32:53.853036"]]
149
+ Error 757: unexpected token at '301'
150
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:32:53.853036"], ["updated_at", "2015-04-01 04:32:53.853036"], ["id", 25], ["status_message", "757: unexpected token at '301'"], ["id", 25]]
151
+  (2.5ms) commit transaction
152
+  (0.1ms) begin transaction
153
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:33:50.489694"], ["updated_at", "2015-04-01 04:33:50.489694"]]
154
+ Error 757: unexpected token at '301'
155
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:33:50.489694"], ["updated_at", "2015-04-01 04:33:50.489694"], ["id", 26], ["status_message", "757: unexpected token at '301'"], ["id", 26]]
156
+  (2.7ms) commit transaction
157
+  (0.1ms) begin transaction
158
+ SQL (0.7ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:34:05.226604"], ["updated_at", "2015-04-01 04:34:05.226604"]]
159
+ Error 757: unexpected token at '301'
160
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:34:05.226604"], ["updated_at", "2015-04-01 04:34:05.226604"], ["id", 27], ["status_message", "757: unexpected token at '301'"], ["id", 27]]
161
+  (2.7ms) commit transaction
162
+  (0.1ms) begin transaction
163
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:35:14.430301"], ["updated_at", "2015-04-01 04:35:14.430301"]]
164
+ Error 757: unexpected token at '100
165
+ 201514-287346
166
+ balance=0'
167
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:35:14.430301"], ["updated_at", "2015-04-01 04:35:14.430301"], ["id", 28], ["status_message", "757: unexpected token at '100\n201514-287346\nbalance=0'"], ["id", 28]]
168
+  (2.8ms) commit transaction
169
+  (0.1ms) begin transaction
170
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:36:30.361178"], ["updated_at", "2015-04-01 04:36:30.361178"]]
171
+ Error undefined method `[]' for nil:NilClass
172
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:36:30.361178"], ["updated_at", "2015-04-01 04:36:30.361178"], ["id", 29], ["status_message", "undefined method `[]' for nil:NilClass"], ["id", 29]]
173
+  (3.3ms) commit transaction
174
+  (0.1ms) begin transaction
175
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:36:53.887144"], ["updated_at", "2015-04-01 04:36:53.887144"]]
176
+ Error undefined method `[]' for nil:NilClass
177
+ SQL (0.6ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:36:53.887144"], ["updated_at", "2015-04-01 04:36:53.887144"], ["id", 30], ["status_message", "undefined method `[]' for nil:NilClass"], ["id", 30]]
178
+  (3.3ms) commit transaction
179
+  (0.1ms) begin transaction
180
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:38:09.094419"], ["updated_at", "2015-04-01 04:38:09.094419"]]
181
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:38:09.094419"], ["updated_at", "2015-04-01 04:38:09.094419"], ["id", 31], ["code", "200"], ["id", 31]]
182
+  (2.8ms) commit transaction
183
+  (0.1ms) begin transaction
184
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:38:34.700797"], ["updated_at", "2015-04-01 04:38:34.700797"]]
185
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:38:34.700797"], ["updated_at", "2015-04-01 04:38:34.700797"], ["id", 32], ["code", "200"], ["id", 32]]
186
+  (2.8ms) commit transaction
187
+  (0.1ms) begin transaction
188
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:39:07.700835"], ["updated_at", "2015-04-01 04:39:07.700835"]]
189
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:39:07.700835"], ["updated_at", "2015-04-01 04:39:07.700835"], ["id", 33], ["code", "100\n201514-287538\nbalance=0"], ["id", 33]]
190
+  (1.0ms) commit transaction
191
+  (0.1ms) begin transaction
192
+ SQL (0.7ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:53:10.296523"], ["updated_at", "2015-04-01 04:53:10.296523"]]
193
+ SQL (0.6ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:53:10.296523"], ["updated_at", "2015-04-01 04:53:10.296523"], ["id", 34], ["code", "\n201514-288400\n"], ["id", 34]]
194
+  (1.1ms) commit transaction
195
+  (0.1ms) begin transaction
196
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:53:53.095804"], ["updated_at", "2015-04-01 04:53:53.095804"]]
197
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet"], ["created_at", "2015-04-01 04:53:53.095804"], ["updated_at", "2015-04-01 04:53:53.095804"], ["id", 35], ["code", "\n201514-288428\n"], ["id", 35]]
198
+  (2.5ms) commit transaction
199
+  (0.1ms) begin transaction
200
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 04:54:12.125947"], ["updated_at", "2015-04-01 04:54:12.125947"]]
201
+  (3.1ms) commit transaction
202
+  (0.1ms) begin transaction
203
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 04:54:29.355542"], ["updated_at", "2015-04-01 04:54:29.355542"]]
204
+  (2.6ms) commit transaction
205
+  (0.1ms) begin transaction
206
+ SQL (0.6ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 04:55:58.580527"], ["updated_at", "2015-04-01 04:55:58.580527"]]
207
+  (2.0ms) commit transaction
208
+  (0.1ms) begin transaction
209
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 04:56:33.436192"], ["updated_at", "2015-04-01 04:56:33.436192"]]
210
+  (2.6ms) commit transaction
211
+  (0.1ms) begin transaction
212
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 04:57:02.626507"], ["updated_at", "2015-04-01 04:57:02.626507"]]
213
+  (2.6ms) commit transaction
214
+  (0.1ms) begin transaction
215
+ SQL (0.6ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 04:59:40.358290"], ["updated_at", "2015-04-01 04:59:40.358290"]]
216
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 04:59:40.358290"], ["updated_at", "2015-04-01 04:59:40.358290"], ["id", 41], ["code", "\n201514-288785\n"], ["id", 41]]
217
+  (1.1ms) commit transaction
218
+  (0.1ms) begin transaction
219
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:00:13.070934"], ["updated_at", "2015-04-01 05:00:13.070934"]]
220
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:00:13.070934"], ["updated_at", "2015-04-01 05:00:13.070934"], ["id", 42], ["code", "\n201514-289116\n"], ["id", 42]]
221
+  (3.3ms) commit transaction
222
+  (0.1ms) begin transaction
223
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:00:26.951108"], ["updated_at", "2015-04-01 05:00:26.951108"]]
224
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:00:26.951108"], ["updated_at", "2015-04-01 05:00:26.951108"], ["id", 43], ["code", "201514-289206"], ["id", 43]]
225
+  (2.8ms) commit transaction
226
+  (0.1ms) begin transaction
227
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:01:04.451832"], ["updated_at", "2015-04-01 05:01:04.451832"]]
228
+  (3.1ms) commit transaction
229
+  (0.1ms) begin transaction
230
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:03:32.198773"], ["updated_at", "2015-04-01 05:03:32.198773"]]
231
+ Error 200
232
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:03:32.198773"], ["updated_at", "2015-04-01 05:03:32.198773"], ["id", 45], ["status_message", "200"], ["id", 45]]
233
+  (1.0ms) commit transaction
234
+  (0.1ms) begin transaction
235
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:05:56.161547"], ["updated_at", "2015-04-01 05:05:56.161547"]]
236
+ Error 200
237
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:05:56.161547"], ["updated_at", "2015-04-01 05:05:56.161547"], ["id", 46], ["status_message", "200"], ["id", 46]]
238
+  (2.6ms) commit transaction
239
+  (0.1ms) begin transaction
240
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:06:02.789233"], ["updated_at", "2015-04-01 05:06:02.789233"]]
241
+ Error 200
242
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 3], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:06:02.789233"], ["updated_at", "2015-04-01 05:06:02.789233"], ["id", 47], ["status_message", "200"], ["id", 47]]
243
+  (1.1ms) commit transaction
244
+  (0.1ms) begin transaction
245
+ SQL (0.9ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:06:21.721321"], ["updated_at", "2015-04-01 05:06:21.721321"]]
246
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:06:21.721321"], ["updated_at", "2015-04-01 05:06:21.721321"], ["id", 48], ["code", "201514-290067"], ["id", 48]]
247
+  (2.6ms) commit transaction
248
+  (0.1ms) begin transaction
249
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:09:38.606545"], ["updated_at", "2015-04-01 05:09:38.606545"]]
250
+ Error Unroutable message - rejected
251
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 3], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:09:38.606545"], ["updated_at", "2015-04-01 05:09:38.606545"], ["id", 49], ["status_message", "Unroutable message - rejected"], ["id", 49]]
252
+  (2.5ms) commit transaction
253
+  (0.1ms) begin transaction
254
+ SQL (0.8ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["to", "2481234567"], ["text", "privet1"], ["created_at", "2015-04-01 05:11:44.330672"], ["updated_at", "2015-04-01 05:11:44.330672"]]
255
+ Error Unroutable message - rejected
256
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 3], ["to", "2481234567"], ["text", "privet1"], ["created_at", "2015-04-01 05:11:44.330672"], ["updated_at", "2015-04-01 05:11:44.330672"], ["id", 50], ["status_message", "Unroutable message - rejected"], ["id", 50]]
257
+  (2.9ms) commit transaction
258
+  (0.1ms) begin transaction
259
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["to", "3579645690"], ["text", "privet1"], ["created_at", "2015-04-01 05:12:14.975186"], ["updated_at", "2015-04-01 05:12:14.975186"]]
260
+ Error Unroutable message - rejected
261
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 3], ["to", "3579645690"], ["text", "privet1"], ["created_at", "2015-04-01 05:12:14.975186"], ["updated_at", "2015-04-01 05:12:14.975186"], ["id", 51], ["status_message", "Unroutable message - rejected"], ["id", 51]]
262
+  (3.2ms) commit transaction
263
+  (0.1ms) begin transaction
264
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["to", "66950721544"], ["text", "privet1"], ["created_at", "2015-04-01 05:12:37.591421"], ["updated_at", "2015-04-01 05:12:37.591421"]]
265
+ Error Unroutable message - rejected
266
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "status_message" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 3], ["to", "66950721544"], ["text", "privet1"], ["created_at", "2015-04-01 05:12:37.591421"], ["updated_at", "2015-04-01 05:12:37.591421"], ["id", 52], ["status_message", "Unroutable message - rejected"], ["id", 52]]
267
+  (2.8ms) commit transaction
268
+  (0.1ms) begin transaction
269
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "to", "text", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:17:32.611427"], ["updated_at", "2015-04-01 05:17:32.611427"]]
270
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "to" = ?, "text" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["to", "79050958806"], ["text", "privet1"], ["created_at", "2015-04-01 05:17:32.611427"], ["updated_at", "2015-04-01 05:17:32.611427"], ["id", 53], ["code", "0200000059FADD5B"], ["id", 53]]
271
+  (2.6ms) commit transaction
@@ -2088,3 +2088,1695 @@ Mode: test. To: 1439722, text: simple+text
2088
2088
  SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+1439722"], ["created_at", "2015-03-31 06:12:21.601045"], ["updated_at", "2015-03-31 06:12:21.601045"], ["id", 1], ["code", "1"], ["id", 1]]
2089
2089
   (0.0ms) RELEASE SAVEPOINT active_record_1
2090
2090
   (0.6ms) rollback transaction
2091
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2092
+  (0.1ms) begin transaction
2093
+ ---------------------------
2094
+ Sms::NexmoTest: test_create
2095
+ ---------------------------
2096
+  (0.1ms) SAVEPOINT active_record_1
2097
+ SQL (1.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "4726712"], ["created_at", "2015-04-01 05:34:34.156235"], ["updated_at", "2015-04-01 05:34:34.156235"]]
2098
+ Mode: test. To: 4726712, text: simple+text
2099
+ SQL (0.7ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "4726712"], ["created_at", "2015-04-01 05:34:34.156235"], ["updated_at", "2015-04-01 05:34:34.156235"], ["id", 1], ["code", "1"], ["id", 1]]
2100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2101
+  (1.4ms) rollback transaction
2102
+  (0.1ms) begin transaction
2103
+ ------------------------------
2104
+ Sms::NexmoTest: test_format_to
2105
+ ------------------------------
2106
+  (0.0ms) SAVEPOINT active_record_1
2107
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+3494168"], ["created_at", "2015-04-01 05:34:34.173227"], ["updated_at", "2015-04-01 05:34:34.173227"]]
2108
+ Mode: test. To: 3494168, text: simple+text
2109
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+3494168"], ["created_at", "2015-04-01 05:34:34.173227"], ["updated_at", "2015-04-01 05:34:34.173227"], ["id", 1], ["code", "1"], ["id", 1]]
2110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2111
+  (0.6ms) rollback transaction
2112
+  (0.0ms) begin transaction
2113
+ ------------------------------------------
2114
+ Smster::NexmoControllerTest: test_callback
2115
+ ------------------------------------------
2116
+  (0.1ms) SAVEPOINT active_record_1
2117
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "9218517"], ["created_at", "2015-04-01 05:34:34.231837"], ["updated_at", "2015-04-01 05:34:34.231837"]]
2118
+ Mode: test. To: 9218517, text: simple+text
2119
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "9218517"], ["created_at", "2015-04-01 05:34:34.231837"], ["updated_at", "2015-04-01 05:34:34.231837"], ["id", 1], ["code", "1"], ["id", 1]]
2120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2121
+ Processing by Smster::NexmoController#callback as HTML
2122
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
2123
+ Sms::Nexmo Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2124
+  (0.1ms) SAVEPOINT active_record_1
2125
+ SQL (0.2ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:34:34.241623"], ["id", 1]]
2126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2127
+  (0.1ms) SAVEPOINT active_record_1
2128
+ SQL (0.2ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:34:34.243540"], ["id", 1]]
2129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2130
+ Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.8ms)
2131
+  (0.7ms) rollback transaction
2132
+  (0.1ms) begin transaction
2133
+ ------------------------------
2134
+ Sms::SmsRuTest: test_format_to
2135
+ ------------------------------
2136
+  (0.0ms) SAVEPOINT active_record_1
2137
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+6221219"], ["created_at", "2015-04-01 05:34:34.254063"], ["updated_at", "2015-04-01 05:34:34.254063"]]
2138
+ Mode: test. To: 6221219, text: simple+text
2139
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+6221219"], ["created_at", "2015-04-01 05:34:34.254063"], ["updated_at", "2015-04-01 05:34:34.254063"], ["id", 1], ["code", "1"], ["id", 1]]
2140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2141
+  (0.7ms) rollback transaction
2142
+  (0.0ms) begin transaction
2143
+ ---------------------------
2144
+ Sms::SmsRuTest: test_create
2145
+ ---------------------------
2146
+  (0.0ms) SAVEPOINT active_record_1
2147
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "7248544"], ["created_at", "2015-04-01 05:34:34.258732"], ["updated_at", "2015-04-01 05:34:34.258732"]]
2148
+ Mode: test. To: 7248544, text: simple+text
2149
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "7248544"], ["created_at", "2015-04-01 05:34:34.258732"], ["updated_at", "2015-04-01 05:34:34.258732"], ["id", 1], ["code", "1"], ["id", 1]]
2150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2151
+  (0.7ms) rollback transaction
2152
+  (0.0ms) begin transaction
2153
+ -------------------------------
2154
+ SmsterTest: test_confirguration
2155
+ -------------------------------
2156
+  (0.0ms) rollback transaction
2157
+  (0.0ms) begin transaction
2158
+ --------------------------------
2159
+ Sms::ClickatellTest: test_create
2160
+ --------------------------------
2161
+  (0.0ms) SAVEPOINT active_record_1
2162
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "9664657"], ["created_at", "2015-04-01 05:34:34.270136"], ["updated_at", "2015-04-01 05:34:34.270136"]]
2163
+ Mode: test. To: 9664657, text: simple+text
2164
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "9664657"], ["created_at", "2015-04-01 05:34:34.270136"], ["updated_at", "2015-04-01 05:34:34.270136"], ["id", 1], ["code", "1"], ["id", 1]]
2165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2166
+  (0.7ms) rollback transaction
2167
+  (0.1ms) begin transaction
2168
+ -----------------------------------
2169
+ Sms::ClickatellTest: test_format_to
2170
+ -----------------------------------
2171
+  (0.1ms) SAVEPOINT active_record_1
2172
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+4259627"], ["created_at", "2015-04-01 05:34:34.274204"], ["updated_at", "2015-04-01 05:34:34.274204"]]
2173
+ Mode: test. To: 4259627, text: simple+text
2174
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+4259627"], ["created_at", "2015-04-01 05:34:34.274204"], ["updated_at", "2015-04-01 05:34:34.274204"], ["id", 1], ["code", "1"], ["id", 1]]
2175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2176
+  (0.7ms) rollback transaction
2177
+  (0.0ms) begin transaction
2178
+ ------------------------------------------
2179
+ Smster::SmsruControllerTest: test_callback
2180
+ ------------------------------------------
2181
+  (0.1ms) SAVEPOINT active_record_1
2182
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "8319686"], ["created_at", "2015-04-01 05:34:34.280783"], ["updated_at", "2015-04-01 05:34:34.280783"]]
2183
+ Mode: test. To: 8319686, text: simple+text
2184
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "8319686"], ["created_at", "2015-04-01 05:34:34.280783"], ["updated_at", "2015-04-01 05:34:34.280783"], ["id", 1], ["code", "1"], ["id", 1]]
2185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2186
+ Processing by Smster::SmsruController#callback as HTML
2187
+ Parameters: {"data"=>[["sms_status", "1", "100"]]}
2188
+ Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
2189
+  (0.8ms) rollback transaction
2190
+  (0.1ms) begin transaction
2191
+ -----------------------------------------------
2192
+ Smster::ClickatellControllerTest: test_callback
2193
+ -----------------------------------------------
2194
+  (0.0ms) SAVEPOINT active_record_1
2195
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "2966237"], ["created_at", "2015-04-01 05:34:34.300332"], ["updated_at", "2015-04-01 05:34:34.300332"]]
2196
+ Mode: test. To: 2966237, text: simple+text
2197
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "2966237"], ["created_at", "2015-04-01 05:34:34.300332"], ["updated_at", "2015-04-01 05:34:34.300332"], ["id", 1], ["code", "1"], ["id", 1]]
2198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2199
+ Processing by Smster::ClickatellController#callback as HTML
2200
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
2201
+ Sms::Clickatell Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2202
+  (0.0ms) SAVEPOINT active_record_1
2203
+ SQL (0.0ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:34:34.305506"], ["id", 1]]
2204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2205
+  (0.0ms) SAVEPOINT active_record_1
2206
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:34:34.306644"], ["id", 1]]
2207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2208
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms)
2209
+  (0.8ms) rollback transaction
2210
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2211
+  (0.1ms) begin transaction
2212
+ ------------------------------------------
2213
+ Smster::NexmoControllerTest: test_callback
2214
+ ------------------------------------------
2215
+  (0.1ms) SAVEPOINT active_record_1
2216
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "1756731"], ["created_at", "2015-04-01 05:35:28.575029"], ["updated_at", "2015-04-01 05:35:28.575029"]]
2217
+ Mode: test. To: 1756731, text: simple+text
2218
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "1756731"], ["created_at", "2015-04-01 05:35:28.575029"], ["updated_at", "2015-04-01 05:35:28.575029"], ["id", 1], ["code", "1"], ["id", 1]]
2219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2220
+ Processing by Smster::NexmoController#callback as HTML
2221
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
2222
+ Sms::Nexmo Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2223
+  (0.1ms) SAVEPOINT active_record_1
2224
+ SQL (0.2ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:35:28.589803"], ["id", 1]]
2225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2226
+  (0.1ms) SAVEPOINT active_record_1
2227
+ SQL (0.2ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:35:28.591889"], ["id", 1]]
2228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2229
+ Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.8ms)
2230
+  (2.0ms) rollback transaction
2231
+  (0.1ms) begin transaction
2232
+ -----------------------------------------------
2233
+ Smster::ClickatellControllerTest: test_callback
2234
+ -----------------------------------------------
2235
+  (0.1ms) SAVEPOINT active_record_1
2236
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "5199111"], ["created_at", "2015-04-01 05:35:28.607960"], ["updated_at", "2015-04-01 05:35:28.607960"]]
2237
+ Mode: test. To: 5199111, text: simple+text
2238
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "5199111"], ["created_at", "2015-04-01 05:35:28.607960"], ["updated_at", "2015-04-01 05:35:28.607960"], ["id", 1], ["code", "1"], ["id", 1]]
2239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2240
+ Processing by Smster::ClickatellController#callback as HTML
2241
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
2242
+ Sms::Clickatell Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2243
+  (0.0ms) SAVEPOINT active_record_1
2244
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:35:28.613734"], ["id", 1]]
2245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2246
+  (0.0ms) SAVEPOINT active_record_1
2247
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:35:28.614857"], ["id", 1]]
2248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2249
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
2250
+  (0.8ms) rollback transaction
2251
+  (0.0ms) begin transaction
2252
+ ------------------------------------------
2253
+ Smster::SmsruControllerTest: test_callback
2254
+ ------------------------------------------
2255
+  (0.1ms) SAVEPOINT active_record_1
2256
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1143481"], ["created_at", "2015-04-01 05:35:28.622472"], ["updated_at", "2015-04-01 05:35:28.622472"]]
2257
+ Mode: test. To: 1143481, text: simple+text
2258
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1143481"], ["created_at", "2015-04-01 05:35:28.622472"], ["updated_at", "2015-04-01 05:35:28.622472"], ["id", 1], ["code", "1"], ["id", 1]]
2259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2260
+ Processing by Smster::SmsruController#callback as HTML
2261
+ Parameters: {"data"=>[["sms_status", "1", "100"]]}
2262
+ Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
2263
+  (0.7ms) rollback transaction
2264
+  (0.0ms) begin transaction
2265
+ --------------------------------
2266
+ Sms::ClickatellTest: test_create
2267
+ --------------------------------
2268
+  (0.1ms) SAVEPOINT active_record_1
2269
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "2919458"], ["created_at", "2015-04-01 05:35:28.640406"], ["updated_at", "2015-04-01 05:35:28.640406"]]
2270
+ Mode: test. To: 2919458, text: simple+text
2271
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "2919458"], ["created_at", "2015-04-01 05:35:28.640406"], ["updated_at", "2015-04-01 05:35:28.640406"], ["id", 1], ["code", "1"], ["id", 1]]
2272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2273
+  (0.6ms) rollback transaction
2274
+  (0.1ms) begin transaction
2275
+ -----------------------------------
2276
+ Sms::ClickatellTest: test_format_to
2277
+ -----------------------------------
2278
+  (0.0ms) SAVEPOINT active_record_1
2279
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+9444566"], ["created_at", "2015-04-01 05:35:28.644341"], ["updated_at", "2015-04-01 05:35:28.644341"]]
2280
+ Mode: test. To: 9444566, text: simple+text
2281
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+9444566"], ["created_at", "2015-04-01 05:35:28.644341"], ["updated_at", "2015-04-01 05:35:28.644341"], ["id", 1], ["code", "1"], ["id", 1]]
2282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2283
+  (0.6ms) rollback transaction
2284
+  (0.0ms) begin transaction
2285
+ ---------------------------
2286
+ Sms::SmsRuTest: test_create
2287
+ ---------------------------
2288
+  (0.1ms) SAVEPOINT active_record_1
2289
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "3772163"], ["created_at", "2015-04-01 05:35:28.654442"], ["updated_at", "2015-04-01 05:35:28.654442"]]
2290
+ Mode: test. To: 3772163, text: simple+text
2291
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "3772163"], ["created_at", "2015-04-01 05:35:28.654442"], ["updated_at", "2015-04-01 05:35:28.654442"], ["id", 1], ["code", "1"], ["id", 1]]
2292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2293
+  (0.8ms) rollback transaction
2294
+  (0.1ms) begin transaction
2295
+ ------------------------------
2296
+ Sms::SmsRuTest: test_format_to
2297
+ ------------------------------
2298
+  (0.1ms) SAVEPOINT active_record_1
2299
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+2663792"], ["created_at", "2015-04-01 05:35:28.659016"], ["updated_at", "2015-04-01 05:35:28.659016"]]
2300
+ Mode: test. To: 2663792, text: simple+text
2301
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+2663792"], ["created_at", "2015-04-01 05:35:28.659016"], ["updated_at", "2015-04-01 05:35:28.659016"], ["id", 1], ["code", "1"], ["id", 1]]
2302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2303
+  (0.8ms) rollback transaction
2304
+  (0.1ms) begin transaction
2305
+ ---------------------------
2306
+ Sms::NexmoTest: test_create
2307
+ ---------------------------
2308
+  (0.0ms) SAVEPOINT active_record_1
2309
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "3429612"], ["created_at", "2015-04-01 05:35:28.665183"], ["updated_at", "2015-04-01 05:35:28.665183"]]
2310
+ Mode: test. To: 3429612, text: simple+text
2311
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "3429612"], ["created_at", "2015-04-01 05:35:28.665183"], ["updated_at", "2015-04-01 05:35:28.665183"], ["id", 1], ["code", "1"], ["id", 1]]
2312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2313
+  (0.6ms) rollback transaction
2314
+  (0.1ms) begin transaction
2315
+ ------------------------------
2316
+ Sms::NexmoTest: test_format_to
2317
+ ------------------------------
2318
+  (0.1ms) SAVEPOINT active_record_1
2319
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+5742964"], ["created_at", "2015-04-01 05:35:28.670489"], ["updated_at", "2015-04-01 05:35:28.670489"]]
2320
+ Mode: test. To: 5742964, text: simple+text
2321
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+5742964"], ["created_at", "2015-04-01 05:35:28.670489"], ["updated_at", "2015-04-01 05:35:28.670489"], ["id", 1], ["code", "1"], ["id", 1]]
2322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2323
+  (0.5ms) rollback transaction
2324
+  (0.1ms) begin transaction
2325
+ -------------------------------
2326
+ SmsterTest: test_confirguration
2327
+ -------------------------------
2328
+  (0.1ms) rollback transaction
2329
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2330
+  (0.1ms) begin transaction
2331
+ ------------------------------------------
2332
+ Smster::NexmoControllerTest: test_callback
2333
+ ------------------------------------------
2334
+  (0.1ms) SAVEPOINT active_record_1
2335
+ SQL (0.6ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "6442764"], ["created_at", "2015-04-01 05:35:55.451045"], ["updated_at", "2015-04-01 05:35:55.451045"]]
2336
+ Mode: test. To: 6442764, text: simple+text
2337
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "6442764"], ["created_at", "2015-04-01 05:35:55.451045"], ["updated_at", "2015-04-01 05:35:55.451045"], ["id", 1], ["code", "1"], ["id", 1]]
2338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2339
+ Processing by Smster::NexmoController#callback as HTML
2340
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
2341
+ Sms::Nexmo Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2342
+  (0.1ms) SAVEPOINT active_record_1
2343
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:35:55.469199"], ["id", 1]]
2344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2345
+  (0.0ms) SAVEPOINT active_record_1
2346
+ SQL (0.2ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:35:55.471142"], ["id", 1]]
2347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2348
+ Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
2349
+  (2.3ms) rollback transaction
2350
+  (0.1ms) begin transaction
2351
+ ---------------------------
2352
+ Sms::NexmoTest: test_create
2353
+ ---------------------------
2354
+  (0.0ms) SAVEPOINT active_record_1
2355
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "9436457"], ["created_at", "2015-04-01 05:35:55.478232"], ["updated_at", "2015-04-01 05:35:55.478232"]]
2356
+ Mode: test. To: 9436457, text: simple+text
2357
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "9436457"], ["created_at", "2015-04-01 05:35:55.478232"], ["updated_at", "2015-04-01 05:35:55.478232"], ["id", 1], ["code", "1"], ["id", 1]]
2358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2359
+  (0.6ms) rollback transaction
2360
+  (0.1ms) begin transaction
2361
+ ------------------------------
2362
+ Sms::NexmoTest: test_format_to
2363
+ ------------------------------
2364
+  (0.0ms) SAVEPOINT active_record_1
2365
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+6319697"], ["created_at", "2015-04-01 05:35:55.482213"], ["updated_at", "2015-04-01 05:35:55.482213"]]
2366
+ Mode: test. To: 6319697, text: simple+text
2367
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+6319697"], ["created_at", "2015-04-01 05:35:55.482213"], ["updated_at", "2015-04-01 05:35:55.482213"], ["id", 1], ["code", "1"], ["id", 1]]
2368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2369
+  (0.4ms) rollback transaction
2370
+  (0.0ms) begin transaction
2371
+ -----------------------------------------------
2372
+ Smster::ClickatellControllerTest: test_callback
2373
+ -----------------------------------------------
2374
+  (0.1ms) SAVEPOINT active_record_1
2375
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "9271119"], ["created_at", "2015-04-01 05:35:55.494573"], ["updated_at", "2015-04-01 05:35:55.494573"]]
2376
+ Mode: test. To: 9271119, text: simple+text
2377
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "9271119"], ["created_at", "2015-04-01 05:35:55.494573"], ["updated_at", "2015-04-01 05:35:55.494573"], ["id", 1], ["code", "1"], ["id", 1]]
2378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2379
+ Processing by Smster::ClickatellController#callback as HTML
2380
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
2381
+ Sms::Clickatell Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2382
+  (0.1ms) SAVEPOINT active_record_1
2383
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:35:55.501665"], ["id", 1]]
2384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2385
+  (0.1ms) SAVEPOINT active_record_1
2386
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:35:55.503155"], ["id", 1]]
2387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2388
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2389
+  (1.0ms) rollback transaction
2390
+  (0.1ms) begin transaction
2391
+ --------------------------------
2392
+ Sms::ClickatellTest: test_create
2393
+ --------------------------------
2394
+  (0.0ms) SAVEPOINT active_record_1
2395
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "5891743"], ["created_at", "2015-04-01 05:35:55.507923"], ["updated_at", "2015-04-01 05:35:55.507923"]]
2396
+ Mode: test. To: 5891743, text: simple+text
2397
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "5891743"], ["created_at", "2015-04-01 05:35:55.507923"], ["updated_at", "2015-04-01 05:35:55.507923"], ["id", 1], ["code", "1"], ["id", 1]]
2398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2399
+  (0.6ms) rollback transaction
2400
+  (0.0ms) begin transaction
2401
+ -----------------------------------
2402
+ Sms::ClickatellTest: test_format_to
2403
+ -----------------------------------
2404
+  (0.0ms) SAVEPOINT active_record_1
2405
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+9774753"], ["created_at", "2015-04-01 05:35:55.512585"], ["updated_at", "2015-04-01 05:35:55.512585"]]
2406
+ Mode: test. To: 9774753, text: simple+text
2407
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+9774753"], ["created_at", "2015-04-01 05:35:55.512585"], ["updated_at", "2015-04-01 05:35:55.512585"], ["id", 1], ["code", "1"], ["id", 1]]
2408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2409
+  (0.7ms) rollback transaction
2410
+  (0.0ms) begin transaction
2411
+ ------------------------------------------
2412
+ Smster::SmsruControllerTest: test_callback
2413
+ ------------------------------------------
2414
+  (0.1ms) SAVEPOINT active_record_1
2415
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "7977931"], ["created_at", "2015-04-01 05:35:55.519634"], ["updated_at", "2015-04-01 05:35:55.519634"]]
2416
+ Mode: test. To: 7977931, text: simple+text
2417
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "7977931"], ["created_at", "2015-04-01 05:35:55.519634"], ["updated_at", "2015-04-01 05:35:55.519634"], ["id", 1], ["code", "1"], ["id", 1]]
2418
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2419
+ Processing by Smster::SmsruController#callback as HTML
2420
+ Parameters: {"data"=>[["sms_status", "1", "100"]]}
2421
+ Rendered text template (0.0ms)
2422
+ Completed 100 Continue in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
2423
+  (0.9ms) rollback transaction
2424
+  (0.0ms) begin transaction
2425
+ -------------------------------
2426
+ SmsterTest: test_confirguration
2427
+ -------------------------------
2428
+  (0.0ms) rollback transaction
2429
+  (0.0ms) begin transaction
2430
+ ---------------------------
2431
+ Sms::SmsRuTest: test_create
2432
+ ---------------------------
2433
+  (0.0ms) SAVEPOINT active_record_1
2434
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "1913726"], ["created_at", "2015-04-01 05:35:55.538504"], ["updated_at", "2015-04-01 05:35:55.538504"]]
2435
+ Mode: test. To: 1913726, text: simple+text
2436
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "1913726"], ["created_at", "2015-04-01 05:35:55.538504"], ["updated_at", "2015-04-01 05:35:55.538504"], ["id", 1], ["code", "1"], ["id", 1]]
2437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2438
+  (0.8ms) rollback transaction
2439
+  (0.0ms) begin transaction
2440
+ ------------------------------
2441
+ Sms::SmsRuTest: test_format_to
2442
+ ------------------------------
2443
+  (0.0ms) SAVEPOINT active_record_1
2444
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+9528896"], ["created_at", "2015-04-01 05:35:55.542659"], ["updated_at", "2015-04-01 05:35:55.542659"]]
2445
+ Mode: test. To: 9528896, text: simple+text
2446
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+9528896"], ["created_at", "2015-04-01 05:35:55.542659"], ["updated_at", "2015-04-01 05:35:55.542659"], ["id", 1], ["code", "1"], ["id", 1]]
2447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2448
+  (0.6ms) rollback transaction
2449
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2450
+  (0.1ms) begin transaction
2451
+ -------------------------------
2452
+ SmsterTest: test_confirguration
2453
+ -------------------------------
2454
+  (0.0ms) rollback transaction
2455
+  (0.0ms) begin transaction
2456
+ ------------------------------
2457
+ Sms::SmsRuTest: test_format_to
2458
+ ------------------------------
2459
+  (0.1ms) SAVEPOINT active_record_1
2460
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+1974997"], ["created_at", "2015-04-01 05:36:20.610094"], ["updated_at", "2015-04-01 05:36:20.610094"]]
2461
+ Mode: test. To: 1974997, text: simple+text
2462
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+1974997"], ["created_at", "2015-04-01 05:36:20.610094"], ["updated_at", "2015-04-01 05:36:20.610094"], ["id", 1], ["code", "1"], ["id", 1]]
2463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2464
+  (2.7ms) rollback transaction
2465
+  (0.1ms) begin transaction
2466
+ ---------------------------
2467
+ Sms::SmsRuTest: test_create
2468
+ ---------------------------
2469
+  (0.0ms) SAVEPOINT active_record_1
2470
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "6881541"], ["created_at", "2015-04-01 05:36:20.621427"], ["updated_at", "2015-04-01 05:36:20.621427"]]
2471
+ Mode: test. To: 6881541, text: simple+text
2472
+ SQL (0.8ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "6881541"], ["created_at", "2015-04-01 05:36:20.621427"], ["updated_at", "2015-04-01 05:36:20.621427"], ["id", 1], ["code", "1"], ["id", 1]]
2473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2474
+  (0.8ms) rollback transaction
2475
+  (0.1ms) begin transaction
2476
+ ------------------------------------------
2477
+ Smster::NexmoControllerTest: test_callback
2478
+ ------------------------------------------
2479
+  (0.1ms) SAVEPOINT active_record_1
2480
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "1312877"], ["created_at", "2015-04-01 05:36:20.671110"], ["updated_at", "2015-04-01 05:36:20.671110"]]
2481
+ Mode: test. To: 1312877, text: simple+text
2482
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "1312877"], ["created_at", "2015-04-01 05:36:20.671110"], ["updated_at", "2015-04-01 05:36:20.671110"], ["id", 1], ["code", "1"], ["id", 1]]
2483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2484
+ Processing by Smster::NexmoController#callback as HTML
2485
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
2486
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2487
+  (0.0ms) SAVEPOINT active_record_1
2488
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:36:20.678988"], ["id", 1]]
2489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2490
+  (0.0ms) SAVEPOINT active_record_1
2491
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:36:20.680335"], ["id", 1]]
2492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2493
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
2494
+  (0.8ms) rollback transaction
2495
+  (0.0ms) begin transaction
2496
+ -----------------------------------------------
2497
+ Smster::ClickatellControllerTest: test_callback
2498
+ -----------------------------------------------
2499
+  (0.1ms) SAVEPOINT active_record_1
2500
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "3663975"], ["created_at", "2015-04-01 05:36:20.692542"], ["updated_at", "2015-04-01 05:36:20.692542"]]
2501
+ Mode: test. To: 3663975, text: simple+text
2502
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "3663975"], ["created_at", "2015-04-01 05:36:20.692542"], ["updated_at", "2015-04-01 05:36:20.692542"], ["id", 1], ["code", "1"], ["id", 1]]
2503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2504
+ Processing by Smster::ClickatellController#callback as HTML
2505
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
2506
+ Sms::Clickatell Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2507
+  (0.1ms) SAVEPOINT active_record_1
2508
+ SQL (0.0ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:36:20.697936"], ["id", 1]]
2509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2510
+  (0.0ms) SAVEPOINT active_record_1
2511
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:36:20.699036"], ["id", 1]]
2512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2513
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2514
+  (0.9ms) rollback transaction
2515
+  (0.1ms) begin transaction
2516
+ ------------------------------------------
2517
+ Smster::SmsruControllerTest: test_callback
2518
+ ------------------------------------------
2519
+  (0.1ms) SAVEPOINT active_record_1
2520
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "3673585"], ["created_at", "2015-04-01 05:36:20.708378"], ["updated_at", "2015-04-01 05:36:20.708378"]]
2521
+ Mode: test. To: 3673585, text: simple+text
2522
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "3673585"], ["created_at", "2015-04-01 05:36:20.708378"], ["updated_at", "2015-04-01 05:36:20.708378"], ["id", 1], ["code", "1"], ["id", 1]]
2523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2524
+ Processing by Smster::SmsruController#callback as HTML
2525
+ Parameters: {"data"=>[["sms_status", "1", "100"]]}
2526
+ Rendered text template (0.0ms)
2527
+ Completed 100 Continue in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
2528
+  (0.7ms) rollback transaction
2529
+  (0.0ms) begin transaction
2530
+ --------------------------------
2531
+ Sms::ClickatellTest: test_create
2532
+ --------------------------------
2533
+  (0.0ms) SAVEPOINT active_record_1
2534
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1256678"], ["created_at", "2015-04-01 05:36:20.721194"], ["updated_at", "2015-04-01 05:36:20.721194"]]
2535
+ Mode: test. To: 1256678, text: simple+text
2536
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1256678"], ["created_at", "2015-04-01 05:36:20.721194"], ["updated_at", "2015-04-01 05:36:20.721194"], ["id", 1], ["code", "1"], ["id", 1]]
2537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2538
+  (0.6ms) rollback transaction
2539
+  (0.0ms) begin transaction
2540
+ -----------------------------------
2541
+ Sms::ClickatellTest: test_format_to
2542
+ -----------------------------------
2543
+  (0.0ms) SAVEPOINT active_record_1
2544
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+1612188"], ["created_at", "2015-04-01 05:36:20.725184"], ["updated_at", "2015-04-01 05:36:20.725184"]]
2545
+ Mode: test. To: 1612188, text: simple+text
2546
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+1612188"], ["created_at", "2015-04-01 05:36:20.725184"], ["updated_at", "2015-04-01 05:36:20.725184"], ["id", 1], ["code", "1"], ["id", 1]]
2547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2548
+  (0.6ms) rollback transaction
2549
+  (0.0ms) begin transaction
2550
+ ---------------------------
2551
+ Sms::NexmoTest: test_create
2552
+ ---------------------------
2553
+  (0.0ms) SAVEPOINT active_record_1
2554
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "3769681"], ["created_at", "2015-04-01 05:36:20.729138"], ["updated_at", "2015-04-01 05:36:20.729138"]]
2555
+ Mode: test. To: 3769681, text: simple+text
2556
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "3769681"], ["created_at", "2015-04-01 05:36:20.729138"], ["updated_at", "2015-04-01 05:36:20.729138"], ["id", 1], ["code", "1"], ["id", 1]]
2557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2558
+  (0.6ms) rollback transaction
2559
+  (0.0ms) begin transaction
2560
+ ------------------------------
2561
+ Sms::NexmoTest: test_format_to
2562
+ ------------------------------
2563
+  (0.0ms) SAVEPOINT active_record_1
2564
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+1881658"], ["created_at", "2015-04-01 05:36:20.732986"], ["updated_at", "2015-04-01 05:36:20.732986"]]
2565
+ Mode: test. To: 1881658, text: simple+text
2566
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+1881658"], ["created_at", "2015-04-01 05:36:20.732986"], ["updated_at", "2015-04-01 05:36:20.732986"], ["id", 1], ["code", "1"], ["id", 1]]
2567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2568
+  (0.5ms) rollback transaction
2569
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2570
+  (0.1ms) begin transaction
2571
+ -----------------------------------------------
2572
+ Smster::ClickatellControllerTest: test_callback
2573
+ -----------------------------------------------
2574
+  (0.1ms) SAVEPOINT active_record_1
2575
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "2182567"], ["created_at", "2015-04-01 05:36:31.199110"], ["updated_at", "2015-04-01 05:36:31.199110"]]
2576
+ Mode: test. To: 2182567, text: simple+text
2577
+ SQL (0.9ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "2182567"], ["created_at", "2015-04-01 05:36:31.199110"], ["updated_at", "2015-04-01 05:36:31.199110"], ["id", 1], ["code", "1"], ["id", 1]]
2578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2579
+ Processing by Smster::ClickatellController#callback as HTML
2580
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
2581
+ Sms::Clickatell Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2582
+  (0.1ms) SAVEPOINT active_record_1
2583
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:36:31.217976"], ["id", 1]]
2584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2585
+  (0.0ms) SAVEPOINT active_record_1
2586
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:36:31.219693"], ["id", 1]]
2587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2588
+ Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2589
+  (2.9ms) rollback transaction
2590
+  (0.1ms) begin transaction
2591
+ --------------------------------
2592
+ Sms::ClickatellTest: test_create
2593
+ --------------------------------
2594
+  (0.1ms) SAVEPOINT active_record_1
2595
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "8547352"], ["created_at", "2015-04-01 05:36:31.226348"], ["updated_at", "2015-04-01 05:36:31.226348"]]
2596
+ Mode: test. To: 8547352, text: simple+text
2597
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "8547352"], ["created_at", "2015-04-01 05:36:31.226348"], ["updated_at", "2015-04-01 05:36:31.226348"], ["id", 1], ["code", "1"], ["id", 1]]
2598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2599
+  (0.7ms) rollback transaction
2600
+  (0.1ms) begin transaction
2601
+ -----------------------------------
2602
+ Sms::ClickatellTest: test_format_to
2603
+ -----------------------------------
2604
+  (0.1ms) SAVEPOINT active_record_1
2605
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+7654476"], ["created_at", "2015-04-01 05:36:31.231334"], ["updated_at", "2015-04-01 05:36:31.231334"]]
2606
+ Mode: test. To: 7654476, text: simple+text
2607
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+7654476"], ["created_at", "2015-04-01 05:36:31.231334"], ["updated_at", "2015-04-01 05:36:31.231334"], ["id", 1], ["code", "1"], ["id", 1]]
2608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2609
+  (0.7ms) rollback transaction
2610
+  (0.0ms) begin transaction
2611
+ ------------------------------------------
2612
+ Smster::SmsruControllerTest: test_callback
2613
+ ------------------------------------------
2614
+  (0.1ms) SAVEPOINT active_record_1
2615
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "7664893"], ["created_at", "2015-04-01 05:36:31.238699"], ["updated_at", "2015-04-01 05:36:31.238699"]]
2616
+ Mode: test. To: 7664893, text: simple+text
2617
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "7664893"], ["created_at", "2015-04-01 05:36:31.238699"], ["updated_at", "2015-04-01 05:36:31.238699"], ["id", 1], ["code", "1"], ["id", 1]]
2618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2619
+ Processing by Smster::SmsruController#callback as HTML
2620
+ Parameters: {"data"=>[["sms_status", "1", "100"]]}
2621
+ Rendered text template (0.0ms)
2622
+ Completed 100 Continue in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
2623
+  (0.7ms) rollback transaction
2624
+  (0.0ms) begin transaction
2625
+ ------------------------------
2626
+ Sms::NexmoTest: test_format_to
2627
+ ------------------------------
2628
+  (0.1ms) SAVEPOINT active_record_1
2629
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+9916847"], ["created_at", "2015-04-01 05:36:31.254974"], ["updated_at", "2015-04-01 05:36:31.254974"]]
2630
+ Mode: test. To: 9916847, text: simple+text
2631
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+9916847"], ["created_at", "2015-04-01 05:36:31.254974"], ["updated_at", "2015-04-01 05:36:31.254974"], ["id", 1], ["code", "1"], ["id", 1]]
2632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2633
+  (0.5ms) rollback transaction
2634
+  (0.0ms) begin transaction
2635
+ ---------------------------
2636
+ Sms::NexmoTest: test_create
2637
+ ---------------------------
2638
+  (0.0ms) SAVEPOINT active_record_1
2639
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "6148839"], ["created_at", "2015-04-01 05:36:31.259076"], ["updated_at", "2015-04-01 05:36:31.259076"]]
2640
+ Mode: test. To: 6148839, text: simple+text
2641
+ SQL (0.6ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "6148839"], ["created_at", "2015-04-01 05:36:31.259076"], ["updated_at", "2015-04-01 05:36:31.259076"], ["id", 1], ["code", "1"], ["id", 1]]
2642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2643
+  (0.7ms) rollback transaction
2644
+  (0.1ms) begin transaction
2645
+ -------------------------------
2646
+ SmsterTest: test_confirguration
2647
+ -------------------------------
2648
+  (0.0ms) rollback transaction
2649
+  (0.0ms) begin transaction
2650
+ ---------------------------
2651
+ Sms::SmsRuTest: test_create
2652
+ ---------------------------
2653
+  (0.1ms) SAVEPOINT active_record_1
2654
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "2931113"], ["created_at", "2015-04-01 05:36:31.272748"], ["updated_at", "2015-04-01 05:36:31.272748"]]
2655
+ Mode: test. To: 2931113, text: simple+text
2656
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "2931113"], ["created_at", "2015-04-01 05:36:31.272748"], ["updated_at", "2015-04-01 05:36:31.272748"], ["id", 1], ["code", "1"], ["id", 1]]
2657
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2658
+  (0.6ms) rollback transaction
2659
+  (0.0ms) begin transaction
2660
+ ------------------------------
2661
+ Sms::SmsRuTest: test_format_to
2662
+ ------------------------------
2663
+  (0.0ms) SAVEPOINT active_record_1
2664
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+2327836"], ["created_at", "2015-04-01 05:36:31.276879"], ["updated_at", "2015-04-01 05:36:31.276879"]]
2665
+ Mode: test. To: 2327836, text: simple+text
2666
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+2327836"], ["created_at", "2015-04-01 05:36:31.276879"], ["updated_at", "2015-04-01 05:36:31.276879"], ["id", 1], ["code", "1"], ["id", 1]]
2667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2668
+  (0.5ms) rollback transaction
2669
+  (0.0ms) begin transaction
2670
+ ------------------------------------------
2671
+ Smster::NexmoControllerTest: test_callback
2672
+ ------------------------------------------
2673
+  (0.0ms) SAVEPOINT active_record_1
2674
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "8535152"], ["created_at", "2015-04-01 05:36:31.283412"], ["updated_at", "2015-04-01 05:36:31.283412"]]
2675
+ Mode: test. To: 8535152, text: simple+text
2676
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "8535152"], ["created_at", "2015-04-01 05:36:31.283412"], ["updated_at", "2015-04-01 05:36:31.283412"], ["id", 1], ["code", "1"], ["id", 1]]
2677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2678
+ Processing by Smster::NexmoController#callback as HTML
2679
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
2680
+ Sms::Nexmo Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2681
+  (0.1ms) SAVEPOINT active_record_1
2682
+ SQL (0.2ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:36:31.290038"], ["id", 1]]
2683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2684
+  (0.1ms) SAVEPOINT active_record_1
2685
+ SQL (0.2ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:36:31.293144"], ["id", 1]]
2686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2687
+ Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.0ms)
2688
+  (0.8ms) rollback transaction
2689
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2690
+  (0.1ms) begin transaction
2691
+ --------------------------------
2692
+ Sms::ClickatellTest: test_create
2693
+ --------------------------------
2694
+  (0.1ms) SAVEPOINT active_record_1
2695
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "4377891"], ["created_at", "2015-04-01 05:37:38.176271"], ["updated_at", "2015-04-01 05:37:38.176271"]]
2696
+ Mode: test. To: 4377891, text: simple+text
2697
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "4377891"], ["created_at", "2015-04-01 05:37:38.176271"], ["updated_at", "2015-04-01 05:37:38.176271"], ["id", 1], ["code", "1"], ["id", 1]]
2698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2699
+  (2.9ms) rollback transaction
2700
+  (0.1ms) begin transaction
2701
+ -----------------------------------
2702
+ Sms::ClickatellTest: test_format_to
2703
+ -----------------------------------
2704
+  (0.1ms) SAVEPOINT active_record_1
2705
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+2885645"], ["created_at", "2015-04-01 05:37:38.187704"], ["updated_at", "2015-04-01 05:37:38.187704"]]
2706
+ Mode: test. To: 2885645, text: simple+text
2707
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+2885645"], ["created_at", "2015-04-01 05:37:38.187704"], ["updated_at", "2015-04-01 05:37:38.187704"], ["id", 1], ["code", "1"], ["id", 1]]
2708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2709
+  (0.7ms) rollback transaction
2710
+  (0.1ms) begin transaction
2711
+ -------------------------------
2712
+ SmsterTest: test_confirguration
2713
+ -------------------------------
2714
+  (0.1ms) rollback transaction
2715
+  (0.0ms) begin transaction
2716
+ -----------------------------------------------
2717
+ Smster::ClickatellControllerTest: test_callback
2718
+ -----------------------------------------------
2719
+  (0.1ms) SAVEPOINT active_record_1
2720
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1844765"], ["created_at", "2015-04-01 05:37:38.232207"], ["updated_at", "2015-04-01 05:37:38.232207"]]
2721
+ Mode: test. To: 1844765, text: simple+text
2722
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1844765"], ["created_at", "2015-04-01 05:37:38.232207"], ["updated_at", "2015-04-01 05:37:38.232207"], ["id", 1], ["code", "1"], ["id", 1]]
2723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2724
+ Processing by Smster::ClickatellController#callback as HTML
2725
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
2726
+ Sms::Clickatell Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2727
+  (0.0ms) SAVEPOINT active_record_1
2728
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:37:38.240917"], ["id", 1]]
2729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2730
+  (0.0ms) SAVEPOINT active_record_1
2731
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:37:38.242166"], ["id", 1]]
2732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2733
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2734
+  (0.6ms) rollback transaction
2735
+  (0.0ms) begin transaction
2736
+ ---------------------------
2737
+ Sms::NexmoTest: test_create
2738
+ ---------------------------
2739
+  (0.0ms) SAVEPOINT active_record_1
2740
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "6546635"], ["created_at", "2015-04-01 05:37:38.251314"], ["updated_at", "2015-04-01 05:37:38.251314"]]
2741
+ Mode: test. To: 6546635, text: simple+text
2742
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "6546635"], ["created_at", "2015-04-01 05:37:38.251314"], ["updated_at", "2015-04-01 05:37:38.251314"], ["id", 1], ["code", "1"], ["id", 1]]
2743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2744
+  (0.7ms) rollback transaction
2745
+  (0.1ms) begin transaction
2746
+ ------------------------------
2747
+ Sms::NexmoTest: test_format_to
2748
+ ------------------------------
2749
+  (0.0ms) SAVEPOINT active_record_1
2750
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+4518742"], ["created_at", "2015-04-01 05:37:38.255457"], ["updated_at", "2015-04-01 05:37:38.255457"]]
2751
+ Mode: test. To: 4518742, text: simple+text
2752
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+4518742"], ["created_at", "2015-04-01 05:37:38.255457"], ["updated_at", "2015-04-01 05:37:38.255457"], ["id", 1], ["code", "1"], ["id", 1]]
2753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2754
+  (0.7ms) rollback transaction
2755
+  (0.1ms) begin transaction
2756
+ ---------------------------
2757
+ Sms::SmsRuTest: test_create
2758
+ ---------------------------
2759
+  (0.0ms) SAVEPOINT active_record_1
2760
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "6923798"], ["created_at", "2015-04-01 05:37:38.265235"], ["updated_at", "2015-04-01 05:37:38.265235"]]
2761
+ Mode: test. To: 6923798, text: simple+text
2762
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "6923798"], ["created_at", "2015-04-01 05:37:38.265235"], ["updated_at", "2015-04-01 05:37:38.265235"], ["id", 1], ["code", "1"], ["id", 1]]
2763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2764
+  (0.9ms) rollback transaction
2765
+  (0.1ms) begin transaction
2766
+ ------------------------------
2767
+ Sms::SmsRuTest: test_format_to
2768
+ ------------------------------
2769
+  (0.1ms) SAVEPOINT active_record_1
2770
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+7579948"], ["created_at", "2015-04-01 05:37:38.270374"], ["updated_at", "2015-04-01 05:37:38.270374"]]
2771
+ Mode: test. To: 7579948, text: simple+text
2772
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+7579948"], ["created_at", "2015-04-01 05:37:38.270374"], ["updated_at", "2015-04-01 05:37:38.270374"], ["id", 1], ["code", "1"], ["id", 1]]
2773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2774
+  (0.7ms) rollback transaction
2775
+  (0.0ms) begin transaction
2776
+ ------------------------------------------
2777
+ Smster::SmsruControllerTest: test_callback
2778
+ ------------------------------------------
2779
+  (0.0ms) SAVEPOINT active_record_1
2780
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1924127"], ["created_at", "2015-04-01 05:37:38.277662"], ["updated_at", "2015-04-01 05:37:38.277662"]]
2781
+ Mode: test. To: 1924127, text: simple+text
2782
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1924127"], ["created_at", "2015-04-01 05:37:38.277662"], ["updated_at", "2015-04-01 05:37:38.277662"], ["id", 1], ["code", "1"], ["id", 1]]
2783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2784
+ Processing by Smster::SmsruController#callback as HTML
2785
+ Parameters: {"data"=>[["sms_status", "1", "100"]]}
2786
+ Rendered text template (0.0ms)
2787
+ Completed 100 Continue in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
2788
+  (0.8ms) rollback transaction
2789
+  (0.0ms) begin transaction
2790
+ ------------------------------------------
2791
+ Smster::NexmoControllerTest: test_callback
2792
+ ------------------------------------------
2793
+  (0.1ms) SAVEPOINT active_record_1
2794
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "3338321"], ["created_at", "2015-04-01 05:37:38.291321"], ["updated_at", "2015-04-01 05:37:38.291321"]]
2795
+ Mode: test. To: 3338321, text: simple+text
2796
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "3338321"], ["created_at", "2015-04-01 05:37:38.291321"], ["updated_at", "2015-04-01 05:37:38.291321"], ["id", 1], ["code", "1"], ["id", 1]]
2797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2798
+ Processing by Smster::NexmoController#callback as HTML
2799
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
2800
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2801
+  (0.0ms) SAVEPOINT active_record_1
2802
+ SQL (0.0ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:37:38.296220"], ["id", 1]]
2803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2804
+  (0.0ms) SAVEPOINT active_record_1
2805
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:37:38.297299"], ["id", 1]]
2806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2807
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2808
+  (0.8ms) rollback transaction
2809
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2810
+  (0.1ms) begin transaction
2811
+ -------------------------------
2812
+ SmsterTest: test_confirguration
2813
+ -------------------------------
2814
+  (0.1ms) rollback transaction
2815
+  (0.0ms) begin transaction
2816
+ ------------------------------------------
2817
+ Smster::NexmoControllerTest: test_callback
2818
+ ------------------------------------------
2819
+  (0.1ms) SAVEPOINT active_record_1
2820
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "2671113"], ["created_at", "2015-04-01 05:38:00.379589"], ["updated_at", "2015-04-01 05:38:00.379589"]]
2821
+ Mode: test. To: 2671113, text: simple+text
2822
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "2671113"], ["created_at", "2015-04-01 05:38:00.379589"], ["updated_at", "2015-04-01 05:38:00.379589"], ["id", 1], ["code", "1"], ["id", 1]]
2823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2824
+ Processing by Smster::NexmoController#callback as HTML
2825
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
2826
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2827
+  (0.0ms) SAVEPOINT active_record_1
2828
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:38:00.392795"], ["id", 1]]
2829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2830
+  (0.0ms) SAVEPOINT active_record_1
2831
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:38:00.394077"], ["id", 1]]
2832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2833
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2834
+  (2.1ms) rollback transaction
2835
+  (0.1ms) begin transaction
2836
+ --------------------------------
2837
+ Sms::ClickatellTest: test_create
2838
+ --------------------------------
2839
+  (0.1ms) SAVEPOINT active_record_1
2840
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "9119242"], ["created_at", "2015-04-01 05:38:00.407930"], ["updated_at", "2015-04-01 05:38:00.407930"]]
2841
+ Mode: test. To: 9119242, text: simple+text
2842
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "9119242"], ["created_at", "2015-04-01 05:38:00.407930"], ["updated_at", "2015-04-01 05:38:00.407930"], ["id", 1], ["code", "1"], ["id", 1]]
2843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2844
+  (0.7ms) rollback transaction
2845
+  (0.0ms) begin transaction
2846
+ -----------------------------------
2847
+ Sms::ClickatellTest: test_format_to
2848
+ -----------------------------------
2849
+  (0.0ms) SAVEPOINT active_record_1
2850
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+2522852"], ["created_at", "2015-04-01 05:38:00.412193"], ["updated_at", "2015-04-01 05:38:00.412193"]]
2851
+ Mode: test. To: 2522852, text: simple+text
2852
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+2522852"], ["created_at", "2015-04-01 05:38:00.412193"], ["updated_at", "2015-04-01 05:38:00.412193"], ["id", 1], ["code", "1"], ["id", 1]]
2853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2854
+  (0.7ms) rollback transaction
2855
+  (0.0ms) begin transaction
2856
+ ---------------------------
2857
+ Sms::SmsRuTest: test_create
2858
+ ---------------------------
2859
+  (0.1ms) SAVEPOINT active_record_1
2860
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "4826444"], ["created_at", "2015-04-01 05:38:00.422640"], ["updated_at", "2015-04-01 05:38:00.422640"]]
2861
+ Mode: test. To: 4826444, text: simple+text
2862
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "4826444"], ["created_at", "2015-04-01 05:38:00.422640"], ["updated_at", "2015-04-01 05:38:00.422640"], ["id", 1], ["code", "1"], ["id", 1]]
2863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2864
+  (0.7ms) rollback transaction
2865
+  (0.1ms) begin transaction
2866
+ ------------------------------
2867
+ Sms::SmsRuTest: test_format_to
2868
+ ------------------------------
2869
+  (0.0ms) SAVEPOINT active_record_1
2870
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+6495285"], ["created_at", "2015-04-01 05:38:00.427966"], ["updated_at", "2015-04-01 05:38:00.427966"]]
2871
+ Mode: test. To: 6495285, text: simple+text
2872
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+6495285"], ["created_at", "2015-04-01 05:38:00.427966"], ["updated_at", "2015-04-01 05:38:00.427966"], ["id", 1], ["code", "1"], ["id", 1]]
2873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2874
+  (0.6ms) rollback transaction
2875
+  (0.0ms) begin transaction
2876
+ ------------------------------------------
2877
+ Smster::SmsruControllerTest: test_callback
2878
+ ------------------------------------------
2879
+  (0.1ms) SAVEPOINT active_record_1
2880
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1695294"], ["created_at", "2015-04-01 05:38:00.434516"], ["updated_at", "2015-04-01 05:38:00.434516"]]
2881
+ Mode: test. To: 1695294, text: simple+text
2882
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1695294"], ["created_at", "2015-04-01 05:38:00.434516"], ["updated_at", "2015-04-01 05:38:00.434516"], ["id", 1], ["code", "1"], ["id", 1]]
2883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2884
+ Processing by Smster::SmsruController#callback as HTML
2885
+ Parameters: {"data"=>[["sms_status", "1", "100"]]}
2886
+ Rendered text template (0.0ms)
2887
+ Completed 100 Continue in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
2888
+  (0.8ms) rollback transaction
2889
+  (0.0ms) begin transaction
2890
+ ---------------------------
2891
+ Sms::NexmoTest: test_create
2892
+ ---------------------------
2893
+  (0.0ms) SAVEPOINT active_record_1
2894
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "4342127"], ["created_at", "2015-04-01 05:38:00.447525"], ["updated_at", "2015-04-01 05:38:00.447525"]]
2895
+ Mode: test. To: 4342127, text: simple+text
2896
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "4342127"], ["created_at", "2015-04-01 05:38:00.447525"], ["updated_at", "2015-04-01 05:38:00.447525"], ["id", 1], ["code", "1"], ["id", 1]]
2897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2898
+  (0.7ms) rollback transaction
2899
+  (0.0ms) begin transaction
2900
+ ------------------------------
2901
+ Sms::NexmoTest: test_format_to
2902
+ ------------------------------
2903
+  (0.0ms) SAVEPOINT active_record_1
2904
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+2129553"], ["created_at", "2015-04-01 05:38:00.451729"], ["updated_at", "2015-04-01 05:38:00.451729"]]
2905
+ Mode: test. To: 2129553, text: simple+text
2906
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+2129553"], ["created_at", "2015-04-01 05:38:00.451729"], ["updated_at", "2015-04-01 05:38:00.451729"], ["id", 1], ["code", "1"], ["id", 1]]
2907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2908
+  (0.7ms) rollback transaction
2909
+  (0.0ms) begin transaction
2910
+ -----------------------------------------------
2911
+ Smster::ClickatellControllerTest: test_callback
2912
+ -----------------------------------------------
2913
+  (0.0ms) SAVEPOINT active_record_1
2914
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1542695"], ["created_at", "2015-04-01 05:38:00.458154"], ["updated_at", "2015-04-01 05:38:00.458154"]]
2915
+ Mode: test. To: 1542695, text: simple+text
2916
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1542695"], ["created_at", "2015-04-01 05:38:00.458154"], ["updated_at", "2015-04-01 05:38:00.458154"], ["id", 1], ["code", "1"], ["id", 1]]
2917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2918
+ Processing by Smster::ClickatellController#callback as HTML
2919
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
2920
+ Sms::Clickatell Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2921
+  (0.0ms) SAVEPOINT active_record_1
2922
+ SQL (0.0ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:38:00.463509"], ["id", 1]]
2923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2924
+  (0.0ms) SAVEPOINT active_record_1
2925
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:38:00.464630"], ["id", 1]]
2926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2927
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
2928
+  (0.6ms) rollback transaction
2929
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2930
+  (0.1ms) begin transaction
2931
+ ---------------------------
2932
+ Sms::SmsRuTest: test_create
2933
+ ---------------------------
2934
+  (0.1ms) SAVEPOINT active_record_1
2935
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "9268436"], ["created_at", "2015-04-01 05:38:20.970299"], ["updated_at", "2015-04-01 05:38:20.970299"]]
2936
+ Mode: test. To: 9268436, text: simple+text
2937
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "9268436"], ["created_at", "2015-04-01 05:38:20.970299"], ["updated_at", "2015-04-01 05:38:20.970299"], ["id", 1], ["code", "1"], ["id", 1]]
2938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2939
+  (2.8ms) rollback transaction
2940
+  (0.1ms) begin transaction
2941
+ ------------------------------
2942
+ Sms::SmsRuTest: test_format_to
2943
+ ------------------------------
2944
+  (0.1ms) SAVEPOINT active_record_1
2945
+ SQL (0.6ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+2866711"], ["created_at", "2015-04-01 05:38:20.982740"], ["updated_at", "2015-04-01 05:38:20.982740"]]
2946
+ Mode: test. To: 2866711, text: simple+text
2947
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+2866711"], ["created_at", "2015-04-01 05:38:20.982740"], ["updated_at", "2015-04-01 05:38:20.982740"], ["id", 1], ["code", "1"], ["id", 1]]
2948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2949
+  (0.7ms) rollback transaction
2950
+  (0.0ms) begin transaction
2951
+ ------------------------------------------
2952
+ Smster::NexmoControllerTest: test_callback
2953
+ ------------------------------------------
2954
+  (0.1ms) SAVEPOINT active_record_1
2955
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "7187649"], ["created_at", "2015-04-01 05:38:21.030536"], ["updated_at", "2015-04-01 05:38:21.030536"]]
2956
+ Mode: test. To: 7187649, text: simple+text
2957
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "7187649"], ["created_at", "2015-04-01 05:38:21.030536"], ["updated_at", "2015-04-01 05:38:21.030536"], ["id", 1], ["code", "1"], ["id", 1]]
2958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2959
+ Processing by Smster::NexmoController#callback as HTML
2960
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
2961
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2962
+  (0.0ms) SAVEPOINT active_record_1
2963
+ SQL (0.2ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:38:21.037977"], ["id", 1]]
2964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2965
+  (0.1ms) SAVEPOINT active_record_1
2966
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:38:21.040146"], ["id", 1]]
2967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2968
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2969
+  (0.6ms) rollback transaction
2970
+  (0.1ms) begin transaction
2971
+ -----------------------------------------------
2972
+ Smster::ClickatellControllerTest: test_callback
2973
+ -----------------------------------------------
2974
+  (0.1ms) SAVEPOINT active_record_1
2975
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "2987495"], ["created_at", "2015-04-01 05:38:21.052143"], ["updated_at", "2015-04-01 05:38:21.052143"]]
2976
+ Mode: test. To: 2987495, text: simple+text
2977
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "2987495"], ["created_at", "2015-04-01 05:38:21.052143"], ["updated_at", "2015-04-01 05:38:21.052143"], ["id", 1], ["code", "1"], ["id", 1]]
2978
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2979
+ Processing by Smster::ClickatellController#callback as HTML
2980
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
2981
+ Sms::Clickatell Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
2982
+  (0.1ms) SAVEPOINT active_record_1
2983
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:38:21.060518"], ["id", 1]]
2984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2985
+  (0.0ms) SAVEPOINT active_record_1
2986
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:38:21.062082"], ["id", 1]]
2987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2988
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2989
+  (0.7ms) rollback transaction
2990
+  (0.1ms) begin transaction
2991
+ --------------------------------
2992
+ Sms::ClickatellTest: test_create
2993
+ --------------------------------
2994
+  (0.0ms) SAVEPOINT active_record_1
2995
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1742959"], ["created_at", "2015-04-01 05:38:21.065946"], ["updated_at", "2015-04-01 05:38:21.065946"]]
2996
+ Mode: test. To: 1742959, text: simple+text
2997
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1742959"], ["created_at", "2015-04-01 05:38:21.065946"], ["updated_at", "2015-04-01 05:38:21.065946"], ["id", 1], ["code", "1"], ["id", 1]]
2998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2999
+  (0.6ms) rollback transaction
3000
+  (0.0ms) begin transaction
3001
+ -----------------------------------
3002
+ Sms::ClickatellTest: test_format_to
3003
+ -----------------------------------
3004
+  (0.0ms) SAVEPOINT active_record_1
3005
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+1328429"], ["created_at", "2015-04-01 05:38:21.069944"], ["updated_at", "2015-04-01 05:38:21.069944"]]
3006
+ Mode: test. To: 1328429, text: simple+text
3007
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+1328429"], ["created_at", "2015-04-01 05:38:21.069944"], ["updated_at", "2015-04-01 05:38:21.069944"], ["id", 1], ["code", "1"], ["id", 1]]
3008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3009
+  (0.6ms) rollback transaction
3010
+  (0.0ms) begin transaction
3011
+ ------------------------------
3012
+ Sms::NexmoTest: test_format_to
3013
+ ------------------------------
3014
+  (0.0ms) SAVEPOINT active_record_1
3015
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+9125495"], ["created_at", "2015-04-01 05:38:21.074527"], ["updated_at", "2015-04-01 05:38:21.074527"]]
3016
+ Mode: test. To: 9125495, text: simple+text
3017
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+9125495"], ["created_at", "2015-04-01 05:38:21.074527"], ["updated_at", "2015-04-01 05:38:21.074527"], ["id", 1], ["code", "1"], ["id", 1]]
3018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3019
+  (0.6ms) rollback transaction
3020
+  (0.0ms) begin transaction
3021
+ ---------------------------
3022
+ Sms::NexmoTest: test_create
3023
+ ---------------------------
3024
+  (0.0ms) SAVEPOINT active_record_1
3025
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "5251175"], ["created_at", "2015-04-01 05:38:21.078650"], ["updated_at", "2015-04-01 05:38:21.078650"]]
3026
+ Mode: test. To: 5251175, text: simple+text
3027
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "5251175"], ["created_at", "2015-04-01 05:38:21.078650"], ["updated_at", "2015-04-01 05:38:21.078650"], ["id", 1], ["code", "1"], ["id", 1]]
3028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3029
+  (0.6ms) rollback transaction
3030
+  (0.0ms) begin transaction
3031
+ -------------------------------
3032
+ SmsterTest: test_confirguration
3033
+ -------------------------------
3034
+  (0.0ms) rollback transaction
3035
+  (0.0ms) begin transaction
3036
+ ------------------------------------------
3037
+ Smster::SmsruControllerTest: test_callback
3038
+ ------------------------------------------
3039
+  (0.0ms) SAVEPOINT active_record_1
3040
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1666569"], ["created_at", "2015-04-01 05:38:21.086184"], ["updated_at", "2015-04-01 05:38:21.086184"]]
3041
+ Mode: test. To: 1666569, text: simple+text
3042
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1666569"], ["created_at", "2015-04-01 05:38:21.086184"], ["updated_at", "2015-04-01 05:38:21.086184"], ["id", 1], ["code", "1"], ["id", 1]]
3043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3044
+ Processing by Smster::SmsruController#callback as HTML
3045
+ Parameters: {"data"=>[["sms_status", "1", "100"]]}
3046
+ Rendered text template (0.0ms)
3047
+ Completed 100 Continue in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
3048
+  (0.8ms) rollback transaction
3049
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3050
+  (0.1ms) begin transaction
3051
+ --------------------------------
3052
+ Sms::ClickatellTest: test_create
3053
+ --------------------------------
3054
+  (0.1ms) SAVEPOINT active_record_1
3055
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "5781883"], ["created_at", "2015-04-01 05:39:31.190222"], ["updated_at", "2015-04-01 05:39:31.190222"]]
3056
+ Mode: test. To: 5781883, text: simple+text
3057
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "5781883"], ["created_at", "2015-04-01 05:39:31.190222"], ["updated_at", "2015-04-01 05:39:31.190222"], ["id", 1], ["code", "1"], ["id", 1]]
3058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3059
+  (2.4ms) rollback transaction
3060
+  (0.1ms) begin transaction
3061
+ -----------------------------------
3062
+ Sms::ClickatellTest: test_format_to
3063
+ -----------------------------------
3064
+  (0.1ms) SAVEPOINT active_record_1
3065
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+9883878"], ["created_at", "2015-04-01 05:39:31.201122"], ["updated_at", "2015-04-01 05:39:31.201122"]]
3066
+ Mode: test. To: 9883878, text: simple+text
3067
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+9883878"], ["created_at", "2015-04-01 05:39:31.201122"], ["updated_at", "2015-04-01 05:39:31.201122"], ["id", 1], ["code", "1"], ["id", 1]]
3068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3069
+  (0.7ms) rollback transaction
3070
+  (0.1ms) begin transaction
3071
+ ---------------------------
3072
+ Sms::NexmoTest: test_create
3073
+ ---------------------------
3074
+  (0.1ms) SAVEPOINT active_record_1
3075
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "3753169"], ["created_at", "2015-04-01 05:39:31.213219"], ["updated_at", "2015-04-01 05:39:31.213219"]]
3076
+ Mode: test. To: 3753169, text: simple+text
3077
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "3753169"], ["created_at", "2015-04-01 05:39:31.213219"], ["updated_at", "2015-04-01 05:39:31.213219"], ["id", 1], ["code", "1"], ["id", 1]]
3078
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3079
+  (0.7ms) rollback transaction
3080
+  (0.0ms) begin transaction
3081
+ ------------------------------
3082
+ Sms::NexmoTest: test_format_to
3083
+ ------------------------------
3084
+  (0.0ms) SAVEPOINT active_record_1
3085
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+6738332"], ["created_at", "2015-04-01 05:39:31.217844"], ["updated_at", "2015-04-01 05:39:31.217844"]]
3086
+ Mode: test. To: 6738332, text: simple+text
3087
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+6738332"], ["created_at", "2015-04-01 05:39:31.217844"], ["updated_at", "2015-04-01 05:39:31.217844"], ["id", 1], ["code", "1"], ["id", 1]]
3088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3089
+  (0.5ms) rollback transaction
3090
+  (0.0ms) begin transaction
3091
+ -------------------------------
3092
+ SmsterTest: test_confirguration
3093
+ -------------------------------
3094
+  (0.1ms) rollback transaction
3095
+  (0.0ms) begin transaction
3096
+ -----------------------------------------------
3097
+ Smster::ClickatellControllerTest: test_callback
3098
+ -----------------------------------------------
3099
+  (0.1ms) SAVEPOINT active_record_1
3100
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "8361669"], ["created_at", "2015-04-01 05:39:31.259125"], ["updated_at", "2015-04-01 05:39:31.259125"]]
3101
+ Mode: test. To: 8361669, text: simple+text
3102
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "8361669"], ["created_at", "2015-04-01 05:39:31.259125"], ["updated_at", "2015-04-01 05:39:31.259125"], ["id", 1], ["code", "1"], ["id", 1]]
3103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3104
+ Processing by Smster::ClickatellController#callback as HTML
3105
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
3106
+ Sms::Clickatell Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3107
+  (0.0ms) SAVEPOINT active_record_1
3108
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:39:31.266795"], ["id", 1]]
3109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3110
+  (0.0ms) SAVEPOINT active_record_1
3111
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:39:31.268160"], ["id", 1]]
3112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3113
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms)
3114
+  (0.8ms) rollback transaction
3115
+  (0.0ms) begin transaction
3116
+ ------------------------------------------
3117
+ Smster::NexmoControllerTest: test_callback
3118
+ ------------------------------------------
3119
+  (0.1ms) SAVEPOINT active_record_1
3120
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "9135488"], ["created_at", "2015-04-01 05:39:31.274031"], ["updated_at", "2015-04-01 05:39:31.274031"]]
3121
+ Mode: test. To: 9135488, text: simple+text
3122
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "9135488"], ["created_at", "2015-04-01 05:39:31.274031"], ["updated_at", "2015-04-01 05:39:31.274031"], ["id", 1], ["code", "1"], ["id", 1]]
3123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3124
+ Processing by Smster::NexmoController#callback as HTML
3125
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
3126
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3127
+  (0.1ms) SAVEPOINT active_record_1
3128
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:39:31.278961"], ["id", 1]]
3129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3130
+  (0.0ms) SAVEPOINT active_record_1
3131
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:39:31.280133"], ["id", 1]]
3132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3133
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
3134
+  (0.8ms) rollback transaction
3135
+  (0.1ms) begin transaction
3136
+ ------------------------------------------
3137
+ Smster::SmsruControllerTest: test_callback
3138
+ ------------------------------------------
3139
+  (0.1ms) SAVEPOINT active_record_1
3140
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "6829936"], ["created_at", "2015-04-01 05:39:31.287071"], ["updated_at", "2015-04-01 05:39:31.287071"]]
3141
+ Mode: test. To: 6829936, text: simple+text
3142
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "6829936"], ["created_at", "2015-04-01 05:39:31.287071"], ["updated_at", "2015-04-01 05:39:31.287071"], ["id", 1], ["code", "1"], ["id", 1]]
3143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3144
+ Processing by Smster::SmsruController#callback as HTML
3145
+ Parameters: {"data"=>["sms_status'\n1\n100"]}
3146
+ Rendered text template (0.0ms)
3147
+ Completed 100 Continue in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
3148
+  (0.5ms) rollback transaction
3149
+  (0.0ms) begin transaction
3150
+ ---------------------------
3151
+ Sms::SmsRuTest: test_create
3152
+ ---------------------------
3153
+  (0.1ms) SAVEPOINT active_record_1
3154
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "7163614"], ["created_at", "2015-04-01 05:39:31.304399"], ["updated_at", "2015-04-01 05:39:31.304399"]]
3155
+ Mode: test. To: 7163614, text: simple+text
3156
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "7163614"], ["created_at", "2015-04-01 05:39:31.304399"], ["updated_at", "2015-04-01 05:39:31.304399"], ["id", 1], ["code", "1"], ["id", 1]]
3157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3158
+  (0.5ms) rollback transaction
3159
+  (0.0ms) begin transaction
3160
+ ------------------------------
3161
+ Sms::SmsRuTest: test_format_to
3162
+ ------------------------------
3163
+  (0.0ms) SAVEPOINT active_record_1
3164
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+7488961"], ["created_at", "2015-04-01 05:39:31.308869"], ["updated_at", "2015-04-01 05:39:31.308869"]]
3165
+ Mode: test. To: 7488961, text: simple+text
3166
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+7488961"], ["created_at", "2015-04-01 05:39:31.308869"], ["updated_at", "2015-04-01 05:39:31.308869"], ["id", 1], ["code", "1"], ["id", 1]]
3167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3168
+  (0.6ms) rollback transaction
3169
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3170
+  (0.1ms) begin transaction
3171
+ ------------------------------------------
3172
+ Smster::NexmoControllerTest: test_callback
3173
+ ------------------------------------------
3174
+  (0.1ms) SAVEPOINT active_record_1
3175
+ SQL (0.7ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "8537281"], ["created_at", "2015-04-01 05:39:50.496772"], ["updated_at", "2015-04-01 05:39:50.496772"]]
3176
+ Mode: test. To: 8537281, text: simple+text
3177
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "8537281"], ["created_at", "2015-04-01 05:39:50.496772"], ["updated_at", "2015-04-01 05:39:50.496772"], ["id", 1], ["code", "1"], ["id", 1]]
3178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3179
+ Processing by Smster::NexmoController#callback as HTML
3180
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
3181
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3182
+  (0.1ms) SAVEPOINT active_record_1
3183
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:39:50.512855"], ["id", 1]]
3184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3185
+  (0.0ms) SAVEPOINT active_record_1
3186
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:39:50.514202"], ["id", 1]]
3187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3188
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms)
3189
+  (2.1ms) rollback transaction
3190
+  (0.1ms) begin transaction
3191
+ ---------------------------
3192
+ Sms::SmsRuTest: test_create
3193
+ ---------------------------
3194
+  (0.1ms) SAVEPOINT active_record_1
3195
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "7396335"], ["created_at", "2015-04-01 05:39:50.527813"], ["updated_at", "2015-04-01 05:39:50.527813"]]
3196
+ Mode: test. To: 7396335, text: simple+text
3197
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "7396335"], ["created_at", "2015-04-01 05:39:50.527813"], ["updated_at", "2015-04-01 05:39:50.527813"], ["id", 1], ["code", "1"], ["id", 1]]
3198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3199
+  (0.7ms) rollback transaction
3200
+  (0.0ms) begin transaction
3201
+ ------------------------------
3202
+ Sms::SmsRuTest: test_format_to
3203
+ ------------------------------
3204
+  (0.0ms) SAVEPOINT active_record_1
3205
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+9444489"], ["created_at", "2015-04-01 05:39:50.532587"], ["updated_at", "2015-04-01 05:39:50.532587"]]
3206
+ Mode: test. To: 9444489, text: simple+text
3207
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+9444489"], ["created_at", "2015-04-01 05:39:50.532587"], ["updated_at", "2015-04-01 05:39:50.532587"], ["id", 1], ["code", "1"], ["id", 1]]
3208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3209
+  (0.7ms) rollback transaction
3210
+  (0.0ms) begin transaction
3211
+ ------------------------------------------
3212
+ Smster::SmsruControllerTest: test_callback
3213
+ ------------------------------------------
3214
+  (0.1ms) SAVEPOINT active_record_1
3215
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "8468364"], ["created_at", "2015-04-01 05:39:50.546730"], ["updated_at", "2015-04-01 05:39:50.546730"]]
3216
+ Mode: test. To: 8468364, text: simple+text
3217
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "8468364"], ["created_at", "2015-04-01 05:39:50.546730"], ["updated_at", "2015-04-01 05:39:50.546730"], ["id", 1], ["code", "1"], ["id", 1]]
3218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3219
+ Processing by Smster::SmsruController#callback as HTML
3220
+ Parameters: {"data"=>["sms_status'\n1\n100"]}
3221
+ Rendered text template (0.0ms)
3222
+ Completed 100 Continue in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
3223
+  (0.7ms) rollback transaction
3224
+  (0.0ms) begin transaction
3225
+ ---------------------------
3226
+ Sms::NexmoTest: test_create
3227
+ ---------------------------
3228
+  (0.0ms) SAVEPOINT active_record_1
3229
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "6924472"], ["created_at", "2015-04-01 05:39:50.560990"], ["updated_at", "2015-04-01 05:39:50.560990"]]
3230
+ Mode: test. To: 6924472, text: simple+text
3231
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "6924472"], ["created_at", "2015-04-01 05:39:50.560990"], ["updated_at", "2015-04-01 05:39:50.560990"], ["id", 1], ["code", "1"], ["id", 1]]
3232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3233
+  (0.7ms) rollback transaction
3234
+  (0.0ms) begin transaction
3235
+ ------------------------------
3236
+ Sms::NexmoTest: test_format_to
3237
+ ------------------------------
3238
+  (0.1ms) SAVEPOINT active_record_1
3239
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+9726327"], ["created_at", "2015-04-01 05:39:50.565210"], ["updated_at", "2015-04-01 05:39:50.565210"]]
3240
+ Mode: test. To: 9726327, text: simple+text
3241
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+9726327"], ["created_at", "2015-04-01 05:39:50.565210"], ["updated_at", "2015-04-01 05:39:50.565210"], ["id", 1], ["code", "1"], ["id", 1]]
3242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3243
+  (0.5ms) rollback transaction
3244
+  (0.0ms) begin transaction
3245
+ -----------------------------------
3246
+ Sms::ClickatellTest: test_format_to
3247
+ -----------------------------------
3248
+  (0.0ms) SAVEPOINT active_record_1
3249
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+4839369"], ["created_at", "2015-04-01 05:39:50.569598"], ["updated_at", "2015-04-01 05:39:50.569598"]]
3250
+ Mode: test. To: 4839369, text: simple+text
3251
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+4839369"], ["created_at", "2015-04-01 05:39:50.569598"], ["updated_at", "2015-04-01 05:39:50.569598"], ["id", 1], ["code", "1"], ["id", 1]]
3252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3253
+  (0.6ms) rollback transaction
3254
+  (0.0ms) begin transaction
3255
+ --------------------------------
3256
+ Sms::ClickatellTest: test_create
3257
+ --------------------------------
3258
+  (0.0ms) SAVEPOINT active_record_1
3259
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "4548844"], ["created_at", "2015-04-01 05:39:50.573428"], ["updated_at", "2015-04-01 05:39:50.573428"]]
3260
+ Mode: test. To: 4548844, text: simple+text
3261
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "4548844"], ["created_at", "2015-04-01 05:39:50.573428"], ["updated_at", "2015-04-01 05:39:50.573428"], ["id", 1], ["code", "1"], ["id", 1]]
3262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3263
+  (0.5ms) rollback transaction
3264
+  (0.1ms) begin transaction
3265
+ -------------------------------
3266
+ SmsterTest: test_confirguration
3267
+ -------------------------------
3268
+  (0.0ms) rollback transaction
3269
+  (0.0ms) begin transaction
3270
+ -----------------------------------------------
3271
+ Smster::ClickatellControllerTest: test_callback
3272
+ -----------------------------------------------
3273
+  (0.1ms) SAVEPOINT active_record_1
3274
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "2578224"], ["created_at", "2015-04-01 05:39:50.581636"], ["updated_at", "2015-04-01 05:39:50.581636"]]
3275
+ Mode: test. To: 2578224, text: simple+text
3276
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "2578224"], ["created_at", "2015-04-01 05:39:50.581636"], ["updated_at", "2015-04-01 05:39:50.581636"], ["id", 1], ["code", "1"], ["id", 1]]
3277
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3278
+ Processing by Smster::ClickatellController#callback as HTML
3279
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
3280
+ Sms::Clickatell Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3281
+  (0.0ms) SAVEPOINT active_record_1
3282
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:39:50.588665"], ["id", 1]]
3283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3284
+  (0.0ms) SAVEPOINT active_record_1
3285
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:39:50.589846"], ["id", 1]]
3286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3287
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms)
3288
+  (0.7ms) rollback transaction
3289
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3290
+  (0.1ms) begin transaction
3291
+ ------------------------------------------
3292
+ Smster::SmsruControllerTest: test_callback
3293
+ ------------------------------------------
3294
+  (0.1ms) SAVEPOINT active_record_1
3295
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1114295"], ["created_at", "2015-04-01 05:40:45.641292"], ["updated_at", "2015-04-01 05:40:45.641292"]]
3296
+ Mode: test. To: 1114295, text: simple+text
3297
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1114295"], ["created_at", "2015-04-01 05:40:45.641292"], ["updated_at", "2015-04-01 05:40:45.641292"], ["id", 1], ["code", "1"], ["id", 1]]
3298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3299
+ Processing by Smster::SmsruController#callback as HTML
3300
+ Parameters: {"data"=>["sms_status'\n1\n100"]}
3301
+ Rendered text template (0.0ms)
3302
+ Completed 100 Continue in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
3303
+  (2.8ms) rollback transaction
3304
+  (0.1ms) begin transaction
3305
+ -----------------------------------------------
3306
+ Smster::ClickatellControllerTest: test_callback
3307
+ -----------------------------------------------
3308
+  (0.0ms) SAVEPOINT active_record_1
3309
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "3514674"], ["created_at", "2015-04-01 05:40:45.665367"], ["updated_at", "2015-04-01 05:40:45.665367"]]
3310
+ Mode: test. To: 3514674, text: simple+text
3311
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "3514674"], ["created_at", "2015-04-01 05:40:45.665367"], ["updated_at", "2015-04-01 05:40:45.665367"], ["id", 1], ["code", "1"], ["id", 1]]
3312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3313
+ Processing by Smster::ClickatellController#callback as HTML
3314
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
3315
+ Sms::Clickatell Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3316
+  (0.1ms) SAVEPOINT active_record_1
3317
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:40:45.673055"], ["id", 1]]
3318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3319
+  (0.0ms) SAVEPOINT active_record_1
3320
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:40:45.674790"], ["id", 1]]
3321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3322
+ Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.6ms)
3323
+  (0.6ms) rollback transaction
3324
+  (0.1ms) begin transaction
3325
+ ---------------------------
3326
+ Sms::NexmoTest: test_create
3327
+ ---------------------------
3328
+  (0.0ms) SAVEPOINT active_record_1
3329
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "6437572"], ["created_at", "2015-04-01 05:40:45.684220"], ["updated_at", "2015-04-01 05:40:45.684220"]]
3330
+ Mode: test. To: 6437572, text: simple+text
3331
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "6437572"], ["created_at", "2015-04-01 05:40:45.684220"], ["updated_at", "2015-04-01 05:40:45.684220"], ["id", 1], ["code", "1"], ["id", 1]]
3332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3333
+  (0.7ms) rollback transaction
3334
+  (0.1ms) begin transaction
3335
+ ------------------------------
3336
+ Sms::NexmoTest: test_format_to
3337
+ ------------------------------
3338
+  (0.1ms) SAVEPOINT active_record_1
3339
+ SQL (0.8ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+8731616"], ["created_at", "2015-04-01 05:40:45.689118"], ["updated_at", "2015-04-01 05:40:45.689118"]]
3340
+ Mode: test. To: 8731616, text: simple+text
3341
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+8731616"], ["created_at", "2015-04-01 05:40:45.689118"], ["updated_at", "2015-04-01 05:40:45.689118"], ["id", 1], ["code", "1"], ["id", 1]]
3342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3343
+  (0.8ms) rollback transaction
3344
+  (0.1ms) begin transaction
3345
+ ---------------------------
3346
+ Sms::SmsRuTest: test_create
3347
+ ---------------------------
3348
+  (0.1ms) SAVEPOINT active_record_1
3349
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "7993888"], ["created_at", "2015-04-01 05:40:45.703094"], ["updated_at", "2015-04-01 05:40:45.703094"]]
3350
+ Mode: test. To: 7993888, text: simple+text
3351
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "7993888"], ["created_at", "2015-04-01 05:40:45.703094"], ["updated_at", "2015-04-01 05:40:45.703094"], ["id", 1], ["code", "1"], ["id", 1]]
3352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3353
+  (0.6ms) rollback transaction
3354
+  (0.1ms) begin transaction
3355
+ ------------------------------
3356
+ Sms::SmsRuTest: test_format_to
3357
+ ------------------------------
3358
+  (0.0ms) SAVEPOINT active_record_1
3359
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+2249462"], ["created_at", "2015-04-01 05:40:45.707967"], ["updated_at", "2015-04-01 05:40:45.707967"]]
3360
+ Mode: test. To: 2249462, text: simple+text
3361
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+2249462"], ["created_at", "2015-04-01 05:40:45.707967"], ["updated_at", "2015-04-01 05:40:45.707967"], ["id", 1], ["code", "1"], ["id", 1]]
3362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3363
+  (0.8ms) rollback transaction
3364
+  (0.1ms) begin transaction
3365
+ -------------------------------
3366
+ SmsterTest: test_confirguration
3367
+ -------------------------------
3368
+  (0.0ms) rollback transaction
3369
+  (0.1ms) begin transaction
3370
+ -----------------------------------
3371
+ Sms::ClickatellTest: test_format_to
3372
+ -----------------------------------
3373
+  (0.0ms) SAVEPOINT active_record_1
3374
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+8365988"], ["created_at", "2015-04-01 05:40:45.715147"], ["updated_at", "2015-04-01 05:40:45.715147"]]
3375
+ Mode: test. To: 8365988, text: simple+text
3376
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+8365988"], ["created_at", "2015-04-01 05:40:45.715147"], ["updated_at", "2015-04-01 05:40:45.715147"], ["id", 1], ["code", "1"], ["id", 1]]
3377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3378
+  (0.6ms) rollback transaction
3379
+  (0.0ms) begin transaction
3380
+ --------------------------------
3381
+ Sms::ClickatellTest: test_create
3382
+ --------------------------------
3383
+  (0.0ms) SAVEPOINT active_record_1
3384
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "9479492"], ["created_at", "2015-04-01 05:40:45.720357"], ["updated_at", "2015-04-01 05:40:45.720357"]]
3385
+ Mode: test. To: 9479492, text: simple+text
3386
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "9479492"], ["created_at", "2015-04-01 05:40:45.720357"], ["updated_at", "2015-04-01 05:40:45.720357"], ["id", 1], ["code", "1"], ["id", 1]]
3387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3388
+  (0.5ms) rollback transaction
3389
+  (0.1ms) begin transaction
3390
+ ------------------------------------------
3391
+ Smster::NexmoControllerTest: test_callback
3392
+ ------------------------------------------
3393
+  (0.0ms) SAVEPOINT active_record_1
3394
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "4169679"], ["created_at", "2015-04-01 05:40:45.726965"], ["updated_at", "2015-04-01 05:40:45.726965"]]
3395
+ Mode: test. To: 4169679, text: simple+text
3396
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "4169679"], ["created_at", "2015-04-01 05:40:45.726965"], ["updated_at", "2015-04-01 05:40:45.726965"], ["id", 1], ["code", "1"], ["id", 1]]
3397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3398
+ Processing by Smster::NexmoController#callback as HTML
3399
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
3400
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3401
+  (0.1ms) SAVEPOINT active_record_1
3402
+ SQL (0.0ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:40:45.731903"], ["id", 1]]
3403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3404
+  (0.0ms) SAVEPOINT active_record_1
3405
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:40:45.732915"], ["id", 1]]
3406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3407
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
3408
+  (0.8ms) rollback transaction
3409
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3410
+  (0.1ms) begin transaction
3411
+ ---------------------------
3412
+ Sms::SmsRuTest: test_create
3413
+ ---------------------------
3414
+  (0.1ms) SAVEPOINT active_record_1
3415
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "2823626"], ["created_at", "2015-04-01 05:40:59.807617"], ["updated_at", "2015-04-01 05:40:59.807617"]]
3416
+ Mode: test. To: 2823626, text: simple+text
3417
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "2823626"], ["created_at", "2015-04-01 05:40:59.807617"], ["updated_at", "2015-04-01 05:40:59.807617"], ["id", 1], ["code", "1"], ["id", 1]]
3418
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3419
+  (2.4ms) rollback transaction
3420
+  (0.1ms) begin transaction
3421
+ ------------------------------
3422
+ Sms::SmsRuTest: test_format_to
3423
+ ------------------------------
3424
+  (0.1ms) SAVEPOINT active_record_1
3425
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+9277925"], ["created_at", "2015-04-01 05:40:59.818600"], ["updated_at", "2015-04-01 05:40:59.818600"]]
3426
+ Mode: test. To: 9277925, text: simple+text
3427
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+9277925"], ["created_at", "2015-04-01 05:40:59.818600"], ["updated_at", "2015-04-01 05:40:59.818600"], ["id", 1], ["code", "1"], ["id", 1]]
3428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3429
+  (0.7ms) rollback transaction
3430
+  (0.0ms) begin transaction
3431
+ ------------------------------------------
3432
+ Smster::SmsruControllerTest: test_callback
3433
+ ------------------------------------------
3434
+  (0.1ms) SAVEPOINT active_record_1
3435
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "8551746"], ["created_at", "2015-04-01 05:40:59.864241"], ["updated_at", "2015-04-01 05:40:59.864241"]]
3436
+ Mode: test. To: 8551746, text: simple+text
3437
+ SQL (0.5ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "8551746"], ["created_at", "2015-04-01 05:40:59.864241"], ["updated_at", "2015-04-01 05:40:59.864241"], ["id", 1], ["code", "1"], ["id", 1]]
3438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3439
+ Processing by Smster::SmsruController#callback as HTML
3440
+ Parameters: {"data"=>["sms_status\n1\n100"]}
3441
+ Sms::Smsru Load (0.3ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Smsru') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3442
+ Completed 404 Not Found in 4ms (ActiveRecord: 0.3ms)
3443
+  (0.9ms) rollback transaction
3444
+  (0.1ms) begin transaction
3445
+ ------------------------------------------
3446
+ Smster::NexmoControllerTest: test_callback
3447
+ ------------------------------------------
3448
+  (0.1ms) SAVEPOINT active_record_1
3449
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "5181588"], ["created_at", "2015-04-01 05:40:59.886032"], ["updated_at", "2015-04-01 05:40:59.886032"]]
3450
+ Mode: test. To: 5181588, text: simple+text
3451
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "5181588"], ["created_at", "2015-04-01 05:40:59.886032"], ["updated_at", "2015-04-01 05:40:59.886032"], ["id", 1], ["code", "1"], ["id", 1]]
3452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3453
+ Processing by Smster::NexmoController#callback as HTML
3454
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
3455
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3456
+  (0.0ms) SAVEPOINT active_record_1
3457
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:40:59.891415"], ["id", 1]]
3458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3459
+  (0.0ms) SAVEPOINT active_record_1
3460
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:40:59.892542"], ["id", 1]]
3461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3462
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
3463
+  (0.8ms) rollback transaction
3464
+  (0.1ms) begin transaction
3465
+ -----------------------------------------------
3466
+ Smster::ClickatellControllerTest: test_callback
3467
+ -----------------------------------------------
3468
+  (0.1ms) SAVEPOINT active_record_1
3469
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1459167"], ["created_at", "2015-04-01 05:40:59.899112"], ["updated_at", "2015-04-01 05:40:59.899112"]]
3470
+ Mode: test. To: 1459167, text: simple+text
3471
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1459167"], ["created_at", "2015-04-01 05:40:59.899112"], ["updated_at", "2015-04-01 05:40:59.899112"], ["id", 1], ["code", "1"], ["id", 1]]
3472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3473
+ Processing by Smster::ClickatellController#callback as HTML
3474
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
3475
+ Sms::Clickatell Load (0.2ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3476
+  (0.0ms) SAVEPOINT active_record_1
3477
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:40:59.906001"], ["id", 1]]
3478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3479
+  (0.0ms) SAVEPOINT active_record_1
3480
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:40:59.907558"], ["id", 1]]
3481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3482
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
3483
+  (0.8ms) rollback transaction
3484
+  (0.1ms) begin transaction
3485
+ ------------------------------
3486
+ Sms::NexmoTest: test_format_to
3487
+ ------------------------------
3488
+  (0.0ms) SAVEPOINT active_record_1
3489
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+3451323"], ["created_at", "2015-04-01 05:40:59.912447"], ["updated_at", "2015-04-01 05:40:59.912447"]]
3490
+ Mode: test. To: 3451323, text: simple+text
3491
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+3451323"], ["created_at", "2015-04-01 05:40:59.912447"], ["updated_at", "2015-04-01 05:40:59.912447"], ["id", 1], ["code", "1"], ["id", 1]]
3492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3493
+  (0.6ms) rollback transaction
3494
+  (0.0ms) begin transaction
3495
+ ---------------------------
3496
+ Sms::NexmoTest: test_create
3497
+ ---------------------------
3498
+  (0.0ms) SAVEPOINT active_record_1
3499
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "8378772"], ["created_at", "2015-04-01 05:40:59.916577"], ["updated_at", "2015-04-01 05:40:59.916577"]]
3500
+ Mode: test. To: 8378772, text: simple+text
3501
+ SQL (0.6ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "8378772"], ["created_at", "2015-04-01 05:40:59.916577"], ["updated_at", "2015-04-01 05:40:59.916577"], ["id", 1], ["code", "1"], ["id", 1]]
3502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3503
+  (0.7ms) rollback transaction
3504
+  (0.1ms) begin transaction
3505
+ -------------------------------
3506
+ SmsterTest: test_confirguration
3507
+ -------------------------------
3508
+  (0.0ms) rollback transaction
3509
+  (0.0ms) begin transaction
3510
+ --------------------------------
3511
+ Sms::ClickatellTest: test_create
3512
+ --------------------------------
3513
+  (0.0ms) SAVEPOINT active_record_1
3514
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "2168242"], ["created_at", "2015-04-01 05:40:59.923200"], ["updated_at", "2015-04-01 05:40:59.923200"]]
3515
+ Mode: test. To: 2168242, text: simple+text
3516
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "2168242"], ["created_at", "2015-04-01 05:40:59.923200"], ["updated_at", "2015-04-01 05:40:59.923200"], ["id", 1], ["code", "1"], ["id", 1]]
3517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3518
+  (0.6ms) rollback transaction
3519
+  (0.0ms) begin transaction
3520
+ -----------------------------------
3521
+ Sms::ClickatellTest: test_format_to
3522
+ -----------------------------------
3523
+  (0.0ms) SAVEPOINT active_record_1
3524
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+7729371"], ["created_at", "2015-04-01 05:40:59.927152"], ["updated_at", "2015-04-01 05:40:59.927152"]]
3525
+ Mode: test. To: 7729371, text: simple+text
3526
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+7729371"], ["created_at", "2015-04-01 05:40:59.927152"], ["updated_at", "2015-04-01 05:40:59.927152"], ["id", 1], ["code", "1"], ["id", 1]]
3527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3528
+  (0.6ms) rollback transaction
3529
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3530
+  (0.1ms) begin transaction
3531
+ ------------------------------------------
3532
+ Smster::NexmoControllerTest: test_callback
3533
+ ------------------------------------------
3534
+  (0.1ms) SAVEPOINT active_record_1
3535
+ SQL (0.5ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "1342531"], ["created_at", "2015-04-01 05:41:21.257281"], ["updated_at", "2015-04-01 05:41:21.257281"]]
3536
+ Mode: test. To: 1342531, text: simple+text
3537
+ SQL (0.4ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "1342531"], ["created_at", "2015-04-01 05:41:21.257281"], ["updated_at", "2015-04-01 05:41:21.257281"], ["id", 1], ["code", "1"], ["id", 1]]
3538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3539
+ Processing by Smster::NexmoController#callback as HTML
3540
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
3541
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3542
+  (0.0ms) SAVEPOINT active_record_1
3543
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:41:21.270962"], ["id", 1]]
3544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3545
+  (0.0ms) SAVEPOINT active_record_1
3546
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:41:21.272312"], ["id", 1]]
3547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3548
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
3549
+  (2.8ms) rollback transaction
3550
+  (0.1ms) begin transaction
3551
+ --------------------------------
3552
+ Sms::ClickatellTest: test_create
3553
+ --------------------------------
3554
+  (0.1ms) SAVEPOINT active_record_1
3555
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "4114274"], ["created_at", "2015-04-01 05:41:21.287065"], ["updated_at", "2015-04-01 05:41:21.287065"]]
3556
+ Mode: test. To: 4114274, text: simple+text
3557
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "4114274"], ["created_at", "2015-04-01 05:41:21.287065"], ["updated_at", "2015-04-01 05:41:21.287065"], ["id", 1], ["code", "1"], ["id", 1]]
3558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3559
+  (0.7ms) rollback transaction
3560
+  (0.1ms) begin transaction
3561
+ -----------------------------------
3562
+ Sms::ClickatellTest: test_format_to
3563
+ -----------------------------------
3564
+  (0.0ms) SAVEPOINT active_record_1
3565
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+7536244"], ["created_at", "2015-04-01 05:41:21.292447"], ["updated_at", "2015-04-01 05:41:21.292447"]]
3566
+ Mode: test. To: 7536244, text: simple+text
3567
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+7536244"], ["created_at", "2015-04-01 05:41:21.292447"], ["updated_at", "2015-04-01 05:41:21.292447"], ["id", 1], ["code", "1"], ["id", 1]]
3568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3569
+  (0.6ms) rollback transaction
3570
+  (0.0ms) begin transaction
3571
+ ------------------------------
3572
+ Sms::NexmoTest: test_format_to
3573
+ ------------------------------
3574
+  (0.0ms) SAVEPOINT active_record_1
3575
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+1484856"], ["created_at", "2015-04-01 05:41:21.297553"], ["updated_at", "2015-04-01 05:41:21.297553"]]
3576
+ Mode: test. To: 1484856, text: simple+text
3577
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+1484856"], ["created_at", "2015-04-01 05:41:21.297553"], ["updated_at", "2015-04-01 05:41:21.297553"], ["id", 1], ["code", "1"], ["id", 1]]
3578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3579
+  (0.7ms) rollback transaction
3580
+  (0.1ms) begin transaction
3581
+ ---------------------------
3582
+ Sms::NexmoTest: test_create
3583
+ ---------------------------
3584
+  (0.0ms) SAVEPOINT active_record_1
3585
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "6533931"], ["created_at", "2015-04-01 05:41:21.301834"], ["updated_at", "2015-04-01 05:41:21.301834"]]
3586
+ Mode: test. To: 6533931, text: simple+text
3587
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "6533931"], ["created_at", "2015-04-01 05:41:21.301834"], ["updated_at", "2015-04-01 05:41:21.301834"], ["id", 1], ["code", "1"], ["id", 1]]
3588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3589
+  (0.7ms) rollback transaction
3590
+  (0.0ms) begin transaction
3591
+ -----------------------------------------------
3592
+ Smster::ClickatellControllerTest: test_callback
3593
+ -----------------------------------------------
3594
+  (0.0ms) SAVEPOINT active_record_1
3595
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "1425375"], ["created_at", "2015-04-01 05:41:21.309837"], ["updated_at", "2015-04-01 05:41:21.309837"]]
3596
+ Mode: test. To: 1425375, text: simple+text
3597
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "1425375"], ["created_at", "2015-04-01 05:41:21.309837"], ["updated_at", "2015-04-01 05:41:21.309837"], ["id", 1], ["code", "1"], ["id", 1]]
3598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3599
+ Processing by Smster::ClickatellController#callback as HTML
3600
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
3601
+ Sms::Clickatell Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3602
+  (0.0ms) SAVEPOINT active_record_1
3603
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:41:21.316903"], ["id", 1]]
3604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3605
+  (0.1ms) SAVEPOINT active_record_1
3606
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:41:21.318525"], ["id", 1]]
3607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3608
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms)
3609
+  (0.8ms) rollback transaction
3610
+  (0.1ms) begin transaction
3611
+ ---------------------------
3612
+ Sms::SmsRuTest: test_create
3613
+ ---------------------------
3614
+  (0.1ms) SAVEPOINT active_record_1
3615
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "3418118"], ["created_at", "2015-04-01 05:41:21.330539"], ["updated_at", "2015-04-01 05:41:21.330539"]]
3616
+ Mode: test. To: 3418118, text: simple+text
3617
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "3418118"], ["created_at", "2015-04-01 05:41:21.330539"], ["updated_at", "2015-04-01 05:41:21.330539"], ["id", 1], ["code", "1"], ["id", 1]]
3618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3619
+  (0.8ms) rollback transaction
3620
+  (0.0ms) begin transaction
3621
+ ------------------------------
3622
+ Sms::SmsRuTest: test_format_to
3623
+ ------------------------------
3624
+  (0.0ms) SAVEPOINT active_record_1
3625
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+4125974"], ["created_at", "2015-04-01 05:41:21.334876"], ["updated_at", "2015-04-01 05:41:21.334876"]]
3626
+ Mode: test. To: 4125974, text: simple+text
3627
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+4125974"], ["created_at", "2015-04-01 05:41:21.334876"], ["updated_at", "2015-04-01 05:41:21.334876"], ["id", 1], ["code", "1"], ["id", 1]]
3628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3629
+  (0.6ms) rollback transaction
3630
+  (0.0ms) begin transaction
3631
+ -------------------------------
3632
+ SmsterTest: test_confirguration
3633
+ -------------------------------
3634
+  (0.0ms) rollback transaction
3635
+  (0.0ms) begin transaction
3636
+ ------------------------------------------
3637
+ Smster::SmsruControllerTest: test_callback
3638
+ ------------------------------------------
3639
+  (0.0ms) SAVEPOINT active_record_1
3640
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "6875922"], ["created_at", "2015-04-01 05:41:21.342162"], ["updated_at", "2015-04-01 05:41:21.342162"]]
3641
+ Mode: test. To: 6875922, text: simple+text
3642
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "6875922"], ["created_at", "2015-04-01 05:41:21.342162"], ["updated_at", "2015-04-01 05:41:21.342162"], ["id", 1], ["code", "1"], ["id", 1]]
3643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3644
+ Processing by Smster::SmsruController#callback as HTML
3645
+ Parameters: {"data"=>["sms_status\n1\n100"]}
3646
+ Sms::Smsru Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Smsru') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3647
+  (0.0ms) SAVEPOINT active_record_1
3648
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "100"], ["updated_at", "2015-04-01 05:41:21.347418"], ["id", 1]]
3649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3650
+  (0.0ms) SAVEPOINT active_record_1
3651
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:41:21.348565"], ["id", 1]]
3652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3653
+ Rendered text template (0.0ms)
3654
+ Completed 100 Continue in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms)
3655
+  (0.6ms) rollback transaction
3656
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3657
+  (0.1ms) begin transaction
3658
+ ---------------------------
3659
+ Sms::NexmoTest: test_create
3660
+ ---------------------------
3661
+  (0.1ms) SAVEPOINT active_record_1
3662
+ SQL (0.4ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "6716264"], ["created_at", "2015-04-01 05:41:47.819713"], ["updated_at", "2015-04-01 05:41:47.819713"]]
3663
+ Mode: test. To: 6716264, text: simple+text
3664
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "6716264"], ["created_at", "2015-04-01 05:41:47.819713"], ["updated_at", "2015-04-01 05:41:47.819713"], ["id", 1], ["code", "1"], ["id", 1]]
3665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3666
+  (2.1ms) rollback transaction
3667
+  (0.1ms) begin transaction
3668
+ ------------------------------
3669
+ Sms::NexmoTest: test_format_to
3670
+ ------------------------------
3671
+  (0.1ms) SAVEPOINT active_record_1
3672
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+9697822"], ["created_at", "2015-04-01 05:41:47.830398"], ["updated_at", "2015-04-01 05:41:47.830398"]]
3673
+ Mode: test. To: 9697822, text: simple+text
3674
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+9697822"], ["created_at", "2015-04-01 05:41:47.830398"], ["updated_at", "2015-04-01 05:41:47.830398"], ["id", 1], ["code", "1"], ["id", 1]]
3675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3676
+  (0.7ms) rollback transaction
3677
+  (0.1ms) begin transaction
3678
+ ------------------------------------------
3679
+ Smster::NexmoControllerTest: test_callback
3680
+ ------------------------------------------
3681
+  (0.1ms) SAVEPOINT active_record_1
3682
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "1924793"], ["created_at", "2015-04-01 05:41:47.876983"], ["updated_at", "2015-04-01 05:41:47.876983"]]
3683
+ Mode: test. To: 1924793, text: simple+text
3684
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "1924793"], ["created_at", "2015-04-01 05:41:47.876983"], ["updated_at", "2015-04-01 05:41:47.876983"], ["id", 1], ["code", "1"], ["id", 1]]
3685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3686
+ Processing by Smster::NexmoController#callback as HTML
3687
+ Parameters: {"messageId"=>"1", "status"=>"delivered"}
3688
+ Sms::Nexmo Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3689
+  (0.0ms) SAVEPOINT active_record_1
3690
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-04-01 05:41:47.884138"], ["id", 1]]
3691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3692
+  (0.0ms) SAVEPOINT active_record_1
3693
+ SQL (0.1ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:41:47.885390"], ["id", 1]]
3694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3695
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
3696
+  (0.7ms) rollback transaction
3697
+  (0.0ms) begin transaction
3698
+ -----------------------------------
3699
+ Sms::ClickatellTest: test_format_to
3700
+ -----------------------------------
3701
+  (0.1ms) SAVEPOINT active_record_1
3702
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+3263117"], ["created_at", "2015-04-01 05:41:47.894555"], ["updated_at", "2015-04-01 05:41:47.894555"]]
3703
+ Mode: test. To: 3263117, text: simple+text
3704
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+3263117"], ["created_at", "2015-04-01 05:41:47.894555"], ["updated_at", "2015-04-01 05:41:47.894555"], ["id", 1], ["code", "1"], ["id", 1]]
3705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3706
+  (0.7ms) rollback transaction
3707
+  (0.0ms) begin transaction
3708
+ --------------------------------
3709
+ Sms::ClickatellTest: test_create
3710
+ --------------------------------
3711
+  (0.0ms) SAVEPOINT active_record_1
3712
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "4734264"], ["created_at", "2015-04-01 05:41:47.898693"], ["updated_at", "2015-04-01 05:41:47.898693"]]
3713
+ Mode: test. To: 4734264, text: simple+text
3714
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "4734264"], ["created_at", "2015-04-01 05:41:47.898693"], ["updated_at", "2015-04-01 05:41:47.898693"], ["id", 1], ["code", "1"], ["id", 1]]
3715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3716
+  (0.7ms) rollback transaction
3717
+  (0.0ms) begin transaction
3718
+ ---------------------------
3719
+ Sms::SmsRuTest: test_create
3720
+ ---------------------------
3721
+  (0.1ms) SAVEPOINT active_record_1
3722
+ SQL (0.3ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "7594386"], ["created_at", "2015-04-01 05:41:47.908661"], ["updated_at", "2015-04-01 05:41:47.908661"]]
3723
+ Mode: test. To: 7594386, text: simple+text
3724
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "7594386"], ["created_at", "2015-04-01 05:41:47.908661"], ["updated_at", "2015-04-01 05:41:47.908661"], ["id", 1], ["code", "1"], ["id", 1]]
3725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3726
+  (0.7ms) rollback transaction
3727
+  (0.0ms) begin transaction
3728
+ ------------------------------
3729
+ Sms::SmsRuTest: test_format_to
3730
+ ------------------------------
3731
+  (0.0ms) SAVEPOINT active_record_1
3732
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "+7474818"], ["created_at", "2015-04-01 05:41:47.912883"], ["updated_at", "2015-04-01 05:41:47.912883"]]
3733
+ Mode: test. To: 7474818, text: simple+text
3734
+ SQL (0.2ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "+7474818"], ["created_at", "2015-04-01 05:41:47.912883"], ["updated_at", "2015-04-01 05:41:47.912883"], ["id", 1], ["code", "1"], ["id", 1]]
3735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3736
+  (0.6ms) rollback transaction
3737
+  (0.0ms) begin transaction
3738
+ ------------------------------------------
3739
+ Smster::SmsruControllerTest: test_callback
3740
+ ------------------------------------------
3741
+  (0.0ms) SAVEPOINT active_record_1
3742
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Smsru"], ["status", 0], ["text", "simple text"], ["to", "5441538"], ["created_at", "2015-04-01 05:41:47.919702"], ["updated_at", "2015-04-01 05:41:47.919702"]]
3743
+ Mode: test. To: 5441538, text: simple+text
3744
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Smsru"], ["status", 1], ["text", "simple text"], ["to", "5441538"], ["created_at", "2015-04-01 05:41:47.919702"], ["updated_at", "2015-04-01 05:41:47.919702"], ["id", 1], ["code", "1"], ["id", 1]]
3745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3746
+ Processing by Smster::SmsruController#callback as HTML
3747
+ Parameters: {"data"=>["sms_status\n1\n100"]}
3748
+ Sms::Smsru Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Smsru') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3749
+  (0.1ms) SAVEPOINT active_record_1
3750
+ SQL (0.0ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "100"], ["updated_at", "2015-04-01 05:41:47.924778"], ["id", 1]]
3751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3752
+  (0.0ms) SAVEPOINT active_record_1
3753
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:41:47.925848"], ["id", 1]]
3754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3755
+ Rendered text template (0.0ms)
3756
+ Completed 100 Continue in 7ms (Views: 3.9ms | ActiveRecord: 0.4ms)
3757
+  (0.9ms) rollback transaction
3758
+  (0.0ms) begin transaction
3759
+ -----------------------------------------------
3760
+ Smster::ClickatellControllerTest: test_callback
3761
+ -----------------------------------------------
3762
+  (0.1ms) SAVEPOINT active_record_1
3763
+ SQL (0.2ms) INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "9136497"], ["created_at", "2015-04-01 05:41:47.935051"], ["updated_at", "2015-04-01 05:41:47.935051"]]
3764
+ Mode: test. To: 9136497, text: simple+text
3765
+ SQL (0.3ms) UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "9136497"], ["created_at", "2015-04-01 05:41:47.935051"], ["updated_at", "2015-04-01 05:41:47.935051"], ["id", 1], ["code", "1"], ["id", 1]]
3766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3767
+ Processing by Smster::ClickatellController#callback as HTML
3768
+ Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
3769
+ Sms::Clickatell Load (0.1ms) SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
3770
+  (0.0ms) SAVEPOINT active_record_1
3771
+ SQL (0.1ms) UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-04-01 05:41:47.940361"], ["id", 1]]
3772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3773
+  (0.1ms) SAVEPOINT active_record_1
3774
+ SQL (0.0ms) UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-04-01 05:41:47.941510"], ["id", 1]]
3775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3776
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
3777
+  (0.8ms) rollback transaction
3778
+  (0.1ms) begin transaction
3779
+ -------------------------------
3780
+ SmsterTest: test_confirguration
3781
+ -------------------------------
3782
+  (0.0ms) rollback transaction