bloom_remit 0.1.0 → 0.2.0

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: 66d45aad8f97251312abcdf0da5ecb2e90365aae
4
- data.tar.gz: 21a83f8b40228a62e0055e749dad4ab5416ee4ca
3
+ metadata.gz: e8fa16f494b5bdda6094edab188074c0191a2a59
4
+ data.tar.gz: 93b378a258e801a8ffea80dd1b4ae761f56f00e1
5
5
  SHA512:
6
- metadata.gz: 4e1397e6e12435c937e28d50d786798210c093de3873fa2c511c516106d13ee806dcad6cd4492466a8debb1a4247e87888ac6df1b161e7da7deb3096de50195f
7
- data.tar.gz: c2fd6eb776e1ca1aefc521b1fc37ad9b2c78642c4b947aae1fcf6d090b8f467ee1f7bad213119b5eab9195613fbd370bc27a424c01e109f87f3733e9d7a2021b
6
+ metadata.gz: 264a254bef4cf585a6ab39169e280b7c6b3e1964551b380ac1dc47d1bf6e84f6f53d623224cf1457e4e869acfba531de5b604372496174dc3d11d92ca2973bcc
7
+ data.tar.gz: eb050f92ff6d3976e8ace7d635dbda302e618a4014fe064264eed279201ffa0fe3376b212037efea35920bd3af78b532d2a4d19cf0b0292a375141453947fcaa
@@ -5,6 +5,11 @@ module BloomRemit
5
5
 
6
6
  respond_to :json
7
7
 
8
+ def post_update
9
+ op = Txns::Operations::Update.(params)
10
+ render json: op.model
11
+ end
12
+
8
13
  def update
9
14
  respond Txns::Operations::Update
10
15
  end
data/config/routes.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  BloomRemit::Engine.routes.draw do
2
2
  namespace :api do
3
3
  namespace :v1 do
4
- resources :txns, only: %i[update]
4
+ resources :txns do
5
+ member do
6
+ post "/", to: "txns#post_update"
7
+ end
8
+ end
5
9
  end
6
10
  end
7
11
  end
@@ -1,3 +1,3 @@
1
1
  module BloomRemit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -27579,3 +27579,769 @@ Completed 204 No Content in 42ms (ActiveRecord: 1.3ms)
27579
27579
   (0.2ms) COMMIT
27580
27580
   (0.2ms) BEGIN
27581
27581
   (0.2ms) ROLLBACK
27582
+ ActiveRecord::SchemaMigration Load (3.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
27583
+  (4.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27584
+  (2.9ms)  SELECT schemaname || '.' || tablename
27585
+ FROM pg_tables
27586
+ WHERE
27587
+ tablename !~ '_prt_' AND
27588
+ tablename <> 'schema_migrations' AND
27589
+ schemaname = ANY (current_schemas(false))
27590
+ 
27591
+  (6.3ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27592
+  (38.9ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27593
+  (6.6ms) ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27594
+  (0.3ms) BEGIN
27595
+  (0.7ms) COMMIT
27596
+  (0.3ms) BEGIN
27597
+  (0.4ms) SAVEPOINT active_record_1
27598
+ SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27599
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27600
+  (0.3ms) SAVEPOINT active_record_1
27601
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "303da2a5-85c6-428d-9573-9a6efa8e5ab5"], ["sender_id", "1"], ["sender_type", "User"]]
27602
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27603
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:17:45 +0000
27604
+  (0.1ms) ROLLBACK
27605
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
27606
+  (0.5ms) ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27607
+  (1.4ms)  SELECT schemaname || '.' || tablename
27608
+ FROM pg_tables
27609
+ WHERE
27610
+ tablename !~ '_prt_' AND
27611
+ tablename <> 'schema_migrations' AND
27612
+ schemaname = ANY (current_schemas(false))
27613
+ 
27614
+  (1.2ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27615
+  (115.2ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27616
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27617
+  (0.7ms) BEGIN
27618
+  (0.2ms) COMMIT
27619
+  (0.2ms) BEGIN
27620
+  (0.3ms) SAVEPOINT active_record_1
27621
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27622
+  (2.2ms) RELEASE SAVEPOINT active_record_1
27623
+  (0.2ms) SAVEPOINT active_record_1
27624
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "9ba97c27-e15c-48e7-9467-a28db06e1a9e"], ["sender_id", "1"], ["sender_type", "User"]]
27625
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27626
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:19:07 +0000
27627
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27628
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27629
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
27630
+ Rendered text template (0.0ms)
27631
+ Completed 404 Not Found in 1762ms (Views: 361.4ms | ActiveRecord: 0.4ms)
27632
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:19:10 +0000
27633
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27634
+ Parameters: {"secret"=>"9ba97c27-e15c-48e7-9467-a28db06e1a9e", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"9ba97c27-e15c-48e7-9467-a28db06e1a9e"}}
27635
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "9ba97c27-e15c-48e7-9467-a28db06e1a9e"]]
27636
+  (0.3ms) SAVEPOINT active_record_1
27637
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
27638
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27639
+ Completed 500 Internal Server Error in 373ms (ActiveRecord: 1.3ms)
27640
+  (0.3ms) ROLLBACK
27641
+ ActiveRecord::SchemaMigration Load (5.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
27642
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27643
+  (1.5ms)  SELECT schemaname || '.' || tablename
27644
+ FROM pg_tables
27645
+ WHERE
27646
+ tablename !~ '_prt_' AND
27647
+ tablename <> 'schema_migrations' AND
27648
+ schemaname = ANY (current_schemas(false))
27649
+ 
27650
+  (1.0ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27651
+  (23.4ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27652
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27653
+  (0.3ms) BEGIN
27654
+  (0.1ms) COMMIT
27655
+  (0.1ms) BEGIN
27656
+  (4.3ms) SAVEPOINT active_record_1
27657
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27659
+  (0.2ms) SAVEPOINT active_record_1
27660
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "54d4c113-b82c-42cd-83b1-960c0be97d01"], ["sender_id", "1"], ["sender_type", "User"]]
27661
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27662
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:21:17 +0000
27663
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27664
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27665
+ BloomRemit::Txn Load (0.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
27666
+ Rendered text template (0.0ms)
27667
+ Completed 404 Not Found in 1070ms (Views: 176.1ms | ActiveRecord: 0.2ms)
27668
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:21:19 +0000
27669
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27670
+ Parameters: {"secret"=>"54d4c113-b82c-42cd-83b1-960c0be97d01", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"54d4c113-b82c-42cd-83b1-960c0be97d01"}}
27671
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "54d4c113-b82c-42cd-83b1-960c0be97d01"]]
27672
+  (0.1ms) SAVEPOINT active_record_1
27673
+ SQL (0.2ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
27674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27675
+ Completed 500 Internal Server Error in 226ms (ActiveRecord: 0.8ms)
27676
+  (0.7ms) ROLLBACK
27677
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
27678
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27679
+  (1.5ms)  SELECT schemaname || '.' || tablename
27680
+ FROM pg_tables
27681
+ WHERE
27682
+ tablename !~ '_prt_' AND
27683
+ tablename <> 'schema_migrations' AND
27684
+ schemaname = ANY (current_schemas(false))
27685
+ 
27686
+  (1.2ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27687
+  (22.3ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27688
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27689
+  (0.2ms) BEGIN
27690
+  (0.2ms) COMMIT
27691
+  (0.1ms) BEGIN
27692
+  (10.8ms) SAVEPOINT active_record_1
27693
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27694
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27695
+  (0.3ms) SAVEPOINT active_record_1
27696
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "e1f00b06-51ad-4b47-9315-a13134b29552"], ["sender_id", "1"], ["sender_type", "User"]]
27697
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27698
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:22:51 +0000
27699
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27700
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27701
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
27702
+ Rendered text template (0.0ms)
27703
+ Completed 404 Not Found in 1353ms (Views: 72.2ms | ActiveRecord: 0.3ms)
27704
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:22:54 +0000
27705
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27706
+ Parameters: {"secret"=>"e1f00b06-51ad-4b47-9315-a13134b29552", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"e1f00b06-51ad-4b47-9315-a13134b29552"}}
27707
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "e1f00b06-51ad-4b47-9315-a13134b29552"]]
27708
+  (0.3ms) SAVEPOINT active_record_1
27709
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
27710
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27711
+ Completed 500 Internal Server Error in 413ms (ActiveRecord: 1.5ms)
27712
+  (0.2ms) ROLLBACK
27713
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
27714
+  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27715
+  (2.5ms)  SELECT schemaname || '.' || tablename
27716
+ FROM pg_tables
27717
+ WHERE
27718
+ tablename !~ '_prt_' AND
27719
+ tablename <> 'schema_migrations' AND
27720
+ schemaname = ANY (current_schemas(false))
27721
+ 
27722
+  (1.2ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27723
+  (68.8ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27724
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27725
+  (7.9ms) BEGIN
27726
+  (9.0ms) COMMIT
27727
+  (1.1ms) BEGIN
27728
+  (0.2ms) SAVEPOINT active_record_1
27729
+ SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27730
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27731
+  (7.9ms) SAVEPOINT active_record_1
27732
+ SQL (5.9ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "c8caac0a-9901-4a85-b1de-b1e4e5f8f72a"], ["sender_id", "1"], ["sender_type", "User"]]
27733
+  (3.0ms) RELEASE SAVEPOINT active_record_1
27734
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:33:28 +0000
27735
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27736
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27737
+ BloomRemit::Txn Load (1.1ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
27738
+ Rendered text template (0.0ms)
27739
+ Completed 404 Not Found in 1229ms (Views: 122.5ms | ActiveRecord: 1.1ms)
27740
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:33:30 +0000
27741
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27742
+ Parameters: {"secret"=>"c8caac0a-9901-4a85-b1de-b1e4e5f8f72a", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"c8caac0a-9901-4a85-b1de-b1e4e5f8f72a"}}
27743
+ BloomRemit::Txn Load (0.9ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "c8caac0a-9901-4a85-b1de-b1e4e5f8f72a"]]
27744
+  (1.1ms) SAVEPOINT active_record_1
27745
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
27746
+  (0.6ms) RELEASE SAVEPOINT active_record_1
27747
+ Completed 500 Internal Server Error in 185ms (ActiveRecord: 3.1ms)
27748
+  (0.7ms) ROLLBACK
27749
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
27750
+  (2.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27751
+  (5.8ms)  SELECT schemaname || '.' || tablename
27752
+ FROM pg_tables
27753
+ WHERE
27754
+ tablename !~ '_prt_' AND
27755
+ tablename <> 'schema_migrations' AND
27756
+ schemaname = ANY (current_schemas(false))
27757
+ 
27758
+  (3.1ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27759
+  (51.1ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27760
+  (0.7ms) ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27761
+  (0.2ms) BEGIN
27762
+  (0.3ms) COMMIT
27763
+  (0.2ms) BEGIN
27764
+  (0.2ms) SAVEPOINT active_record_1
27765
+ SQL (6.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27766
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27767
+  (0.2ms) SAVEPOINT active_record_1
27768
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2765d4bc-5ec9-45a0-9058-ced942c01b34"], ["sender_id", "1"], ["sender_type", "User"]]
27769
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27770
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:36:26 +0000
27771
+  (0.4ms) ROLLBACK
27772
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
27773
+  (0.6ms) ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27774
+  (1.4ms)  SELECT schemaname || '.' || tablename
27775
+ FROM pg_tables
27776
+ WHERE
27777
+ tablename !~ '_prt_' AND
27778
+ tablename <> 'schema_migrations' AND
27779
+ schemaname = ANY (current_schemas(false))
27780
+ 
27781
+  (1.2ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27782
+  (23.6ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27783
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27784
+  (0.4ms) BEGIN
27785
+  (0.1ms) COMMIT
27786
+  (0.1ms) BEGIN
27787
+  (11.4ms) SAVEPOINT active_record_1
27788
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27789
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27790
+  (0.1ms) SAVEPOINT active_record_1
27791
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "dbfc0c33-8a7b-4373-a26b-a2566ff363c8"], ["sender_id", "1"], ["sender_type", "User"]]
27792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27793
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:41:06 +0000
27794
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27795
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27796
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
27797
+ Rendered text template (0.0ms)
27798
+ Completed 404 Not Found in 1938ms (Views: 401.1ms | ActiveRecord: 0.3ms)
27799
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:41:08 +0000
27800
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27801
+ Parameters: {"secret"=>"dbfc0c33-8a7b-4373-a26b-a2566ff363c8", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"dbfc0c33-8a7b-4373-a26b-a2566ff363c8"}}
27802
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "dbfc0c33-8a7b-4373-a26b-a2566ff363c8"]]
27803
+  (0.1ms) SAVEPOINT active_record_1
27804
+ SQL (0.2ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
27805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27806
+ Completed 500 Internal Server Error in 378ms (ActiveRecord: 0.7ms)
27807
+  (0.5ms) ROLLBACK
27808
+  (0.1ms) BEGIN
27809
+  (0.1ms) COMMIT
27810
+  (0.1ms) BEGIN
27811
+  (0.1ms) SAVEPOINT active_record_1
27812
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27814
+  (0.1ms) SAVEPOINT active_record_1
27815
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "65c40567-5a94-4736-806d-7e12fedb12be"], ["sender_id", "2"], ["sender_type", "User"]]
27816
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27817
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:41:09 +0000
27818
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27819
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27820
+ BloomRemit::Txn Load (0.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
27821
+ Rendered text template (0.0ms)
27822
+ Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
27823
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:41:09 +0000
27824
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27825
+ Parameters: {"secret"=>"65c40567-5a94-4736-806d-7e12fedb12be", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"65c40567-5a94-4736-806d-7e12fedb12be"}}
27826
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "65c40567-5a94-4736-806d-7e12fedb12be"]]
27827
+  (0.2ms) SAVEPOINT active_record_1
27828
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
27829
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27830
+ Completed 204 No Content in 8ms (ActiveRecord: 1.1ms)
27831
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
27832
+  (0.3ms) ROLLBACK
27833
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
27834
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27835
+  (1.2ms)  SELECT schemaname || '.' || tablename
27836
+ FROM pg_tables
27837
+ WHERE
27838
+ tablename !~ '_prt_' AND
27839
+ tablename <> 'schema_migrations' AND
27840
+ schemaname = ANY (current_schemas(false))
27841
+ 
27842
+  (1.1ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27843
+  (16.9ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27844
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27845
+  (0.5ms) BEGIN
27846
+  (0.1ms) COMMIT
27847
+  (0.1ms) BEGIN
27848
+  (0.2ms) SAVEPOINT active_record_1
27849
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27851
+  (0.4ms) SAVEPOINT active_record_1
27852
+ SQL (1.9ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "f6bc2bd4-a823-4525-98b9-154ca9aa62d9"], ["sender_id", "1"], ["sender_type", "User"]]
27853
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27854
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:43:26 +0000
27855
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27856
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27857
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
27858
+ Rendered text template (0.0ms)
27859
+ Completed 404 Not Found in 1034ms (Views: 299.7ms | ActiveRecord: 0.4ms)
27860
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:43:27 +0000
27861
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27862
+ Parameters: {"secret"=>"f6bc2bd4-a823-4525-98b9-154ca9aa62d9", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"f6bc2bd4-a823-4525-98b9-154ca9aa62d9"}}
27863
+ BloomRemit::Txn Load (4.8ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "f6bc2bd4-a823-4525-98b9-154ca9aa62d9"]]
27864
+  (0.1ms) SAVEPOINT active_record_1
27865
+ SQL (0.2ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
27866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27867
+ Completed 500 Internal Server Error in 572ms (ActiveRecord: 5.2ms)
27868
+  (0.2ms) ROLLBACK
27869
+  (0.1ms) BEGIN
27870
+  (0.2ms) COMMIT
27871
+  (0.1ms) BEGIN
27872
+  (2.6ms) SAVEPOINT active_record_1
27873
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27875
+  (0.1ms) SAVEPOINT active_record_1
27876
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5b6727c0-d417-484b-bf56-8e3576c195d2"], ["sender_id", "2"], ["sender_type", "User"]]
27877
+  (6.9ms) RELEASE SAVEPOINT active_record_1
27878
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:43:28 +0000
27879
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27880
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27881
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
27882
+ Rendered text template (0.0ms)
27883
+ Completed 404 Not Found in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
27884
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:43:28 +0000
27885
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27886
+ Parameters: {"secret"=>"5b6727c0-d417-484b-bf56-8e3576c195d2", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"5b6727c0-d417-484b-bf56-8e3576c195d2"}}
27887
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "5b6727c0-d417-484b-bf56-8e3576c195d2"]]
27888
+  (0.1ms) SAVEPOINT active_record_1
27889
+ SQL (0.2ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
27890
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27891
+ Completed 204 No Content in 6ms (ActiveRecord: 0.8ms)
27892
+ BloomRemit::Txn Load (0.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
27893
+  (0.2ms) ROLLBACK
27894
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
27895
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27896
+  (1.3ms)  SELECT schemaname || '.' || tablename
27897
+ FROM pg_tables
27898
+ WHERE
27899
+ tablename !~ '_prt_' AND
27900
+ tablename <> 'schema_migrations' AND
27901
+ schemaname = ANY (current_schemas(false))
27902
+ 
27903
+  (1.2ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27904
+  (12.9ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27905
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27906
+  (0.9ms) BEGIN
27907
+  (0.3ms) COMMIT
27908
+  (0.2ms) BEGIN
27909
+  (0.4ms) SAVEPOINT active_record_1
27910
+ SQL (0.9ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27911
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27912
+  (0.2ms) SAVEPOINT active_record_1
27913
+ SQL (0.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "fcb30454-95bd-40de-868d-61142f0014a6"], ["sender_id", "1"], ["sender_type", "User"]]
27914
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27915
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:45:10 +0000
27916
+  (6.4ms) ROLLBACK
27917
+  (0.2ms) BEGIN
27918
+  (0.3ms) COMMIT
27919
+  (0.2ms) BEGIN
27920
+  (0.3ms) SAVEPOINT active_record_1
27921
+ SQL (7.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27922
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27923
+  (0.2ms) SAVEPOINT active_record_1
27924
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "571b18f9-506b-40dd-b562-c20c5f088e50"], ["sender_id", "2"], ["sender_type", "User"]]
27925
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27926
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:45:10 +0000
27927
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27928
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27929
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
27930
+ Rendered text template (0.0ms)
27931
+ Completed 404 Not Found in 1543ms (Views: 341.7ms | ActiveRecord: 0.4ms)
27932
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:45:13 +0000
27933
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27934
+ Parameters: {"secret"=>"571b18f9-506b-40dd-b562-c20c5f088e50", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"571b18f9-506b-40dd-b562-c20c5f088e50"}}
27935
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "571b18f9-506b-40dd-b562-c20c5f088e50"]]
27936
+  (0.3ms) SAVEPOINT active_record_1
27937
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
27938
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27939
+ Completed 204 No Content in 492ms (ActiveRecord: 1.5ms)
27940
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
27941
+  (0.3ms) ROLLBACK
27942
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
27943
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
27944
+  (1.2ms)  SELECT schemaname || '.' || tablename
27945
+ FROM pg_tables
27946
+ WHERE
27947
+ tablename !~ '_prt_' AND
27948
+ tablename <> 'schema_migrations' AND
27949
+ schemaname = ANY (current_schemas(false))
27950
+ 
27951
+  (1.1ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
27952
+  (27.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
27953
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
27954
+  (0.3ms) BEGIN
27955
+  (0.3ms) COMMIT
27956
+  (0.4ms) BEGIN
27957
+  (0.5ms) SAVEPOINT active_record_1
27958
+ SQL (1.0ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27959
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27960
+  (0.3ms) SAVEPOINT active_record_1
27961
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "3dbfbdf6-2b98-4df8-accf-409d1eba4647"], ["sender_id", "1"], ["sender_type", "User"]]
27962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27963
+ Started POST "/bloom_remit/api/v1/txns" for 127.0.0.1 at 2016-08-08 04:46:44 +0000
27964
+ Processing by BloomRemit::Api::V1::TxnsController#create as JSON
27965
+ Parameters: {"id"=>1, "secret"=>"fake", "status"=>"doesn't matter", "txn"=>{"id"=>1, "status"=>"doesn't matter", "secret"=>"fake"}}
27966
+ BloomRemit::Txn Load (3.8ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
27967
+ Rendered text template (0.0ms)
27968
+ Completed 404 Not Found in 11929ms (Views: 291.6ms | ActiveRecord: 3.8ms)
27969
+ Started POST "/bloom_remit/api/v1/txns" for 127.0.0.1 at 2016-08-08 04:46:56 +0000
27970
+ Processing by BloomRemit::Api::V1::TxnsController#create as JSON
27971
+ Parameters: {"id"=>1, "secret"=>"3dbfbdf6-2b98-4df8-accf-409d1eba4647", "status"=>"paid", "txn"=>{"id"=>1, "status"=>"paid", "secret"=>"3dbfbdf6-2b98-4df8-accf-409d1eba4647"}}
27972
+ BloomRemit::Txn Load (0.8ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "3dbfbdf6-2b98-4df8-accf-409d1eba4647"]]
27973
+  (0.3ms) SAVEPOINT active_record_1
27974
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
27975
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27976
+ Completed 200 OK in 17039ms (Views: 0.4ms | ActiveRecord: 1.6ms)
27977
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
27978
+  (0.8ms) ROLLBACK
27979
+  (0.2ms) BEGIN
27980
+  (0.2ms) COMMIT
27981
+  (0.5ms) BEGIN
27982
+  (7.4ms) SAVEPOINT active_record_1
27983
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
27984
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27985
+  (0.2ms) SAVEPOINT active_record_1
27986
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "0635f599-7704-42b8-ae74-92b0284202c0"], ["sender_id", "2"], ["sender_type", "User"]]
27987
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27988
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:47:13 +0000
27989
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27990
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
27991
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
27992
+ Rendered text template (0.0ms)
27993
+ Completed 404 Not Found in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
27994
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:47:13 +0000
27995
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
27996
+ Parameters: {"secret"=>"0635f599-7704-42b8-ae74-92b0284202c0", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"0635f599-7704-42b8-ae74-92b0284202c0"}}
27997
+ BloomRemit::Txn Load (0.5ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "0635f599-7704-42b8-ae74-92b0284202c0"]]
27998
+  (0.3ms) SAVEPOINT active_record_1
27999
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
28000
+  (8.3ms) RELEASE SAVEPOINT active_record_1
28001
+ Completed 204 No Content in 286ms (ActiveRecord: 9.5ms)
28002
+ BloomRemit::Txn Load (0.7ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
28003
+  (0.5ms) ROLLBACK
28004
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
28005
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
28006
+  (1.4ms)  SELECT schemaname || '.' || tablename
28007
+ FROM pg_tables
28008
+ WHERE
28009
+ tablename !~ '_prt_' AND
28010
+ tablename <> 'schema_migrations' AND
28011
+ schemaname = ANY (current_schemas(false))
28012
+ 
28013
+  (1.2ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
28014
+  (14.9ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
28015
+  (0.4ms) ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
28016
+  (0.5ms) BEGIN
28017
+  (0.2ms) COMMIT
28018
+  (0.2ms) BEGIN
28019
+  (5.6ms) SAVEPOINT active_record_1
28020
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28021
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28022
+  (0.2ms) SAVEPOINT active_record_1
28023
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "acb0e8d6-ea12-46dd-aeed-769025fc0cb9"], ["sender_id", "1"], ["sender_type", "User"]]
28024
+  (0.4ms) RELEASE SAVEPOINT active_record_1
28025
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:54:38 +0000
28026
+  (0.3ms) ROLLBACK
28027
+  (0.2ms) BEGIN
28028
+  (0.2ms) COMMIT
28029
+  (0.2ms) BEGIN
28030
+  (1.0ms) SAVEPOINT active_record_1
28031
+ SQL (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28032
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28033
+  (0.8ms) SAVEPOINT active_record_1
28034
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "bc703a9d-1837-4df1-b988-db129f1c28d8"], ["sender_id", "2"], ["sender_type", "User"]]
28035
+  (0.4ms) RELEASE SAVEPOINT active_record_1
28036
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:54:39 +0000
28037
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
28038
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
28039
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
28040
+ Rendered text template (0.0ms)
28041
+ Completed 404 Not Found in 1597ms (Views: 223.0ms | ActiveRecord: 0.3ms)
28042
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:54:42 +0000
28043
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
28044
+ Parameters: {"secret"=>"bc703a9d-1837-4df1-b988-db129f1c28d8", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"bc703a9d-1837-4df1-b988-db129f1c28d8"}}
28045
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "bc703a9d-1837-4df1-b988-db129f1c28d8"]]
28046
+  (0.4ms) SAVEPOINT active_record_1
28047
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
28048
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28049
+ Completed 204 No Content in 301ms (ActiveRecord: 1.3ms)
28050
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
28051
+  (0.3ms) ROLLBACK
28052
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
28053
+  (0.6ms) ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
28054
+  (1.3ms)  SELECT schemaname || '.' || tablename
28055
+ FROM pg_tables
28056
+ WHERE
28057
+ tablename !~ '_prt_' AND
28058
+ tablename <> 'schema_migrations' AND
28059
+ schemaname = ANY (current_schemas(false))
28060
+ 
28061
+  (1.4ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
28062
+  (13.3ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
28063
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
28064
+  (0.3ms) BEGIN
28065
+  (0.4ms) COMMIT
28066
+  (0.3ms) BEGIN
28067
+  (9.1ms) SAVEPOINT active_record_1
28068
+ SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28069
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28070
+  (0.4ms) SAVEPOINT active_record_1
28071
+ SQL (2.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5ca0fccf-4c26-41c9-bd81-c594cdce2d1c"], ["sender_id", "1"], ["sender_type", "User"]]
28072
+  (2.7ms) RELEASE SAVEPOINT active_record_1
28073
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:56:19 +0000
28074
+  (0.5ms) ROLLBACK
28075
+  (0.6ms) BEGIN
28076
+  (1.9ms) COMMIT
28077
+  (0.9ms) BEGIN
28078
+  (0.3ms) SAVEPOINT active_record_1
28079
+ SQL (2.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28080
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28081
+  (1.3ms) SAVEPOINT active_record_1
28082
+ SQL (6.9ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "b40ef4ce-fec6-4a95-a650-edd95907e210"], ["sender_id", "2"], ["sender_type", "User"]]
28083
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28084
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:56:19 +0000
28085
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
28086
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
28087
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
28088
+ Rendered text template (0.0ms)
28089
+ Completed 404 Not Found in 953ms (Views: 217.7ms | ActiveRecord: 0.3ms)
28090
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:56:21 +0000
28091
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
28092
+ Parameters: {"secret"=>"b40ef4ce-fec6-4a95-a650-edd95907e210", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"b40ef4ce-fec6-4a95-a650-edd95907e210"}}
28093
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "b40ef4ce-fec6-4a95-a650-edd95907e210"]]
28094
+  (0.3ms) SAVEPOINT active_record_1
28095
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
28096
+  (0.4ms) RELEASE SAVEPOINT active_record_1
28097
+ Completed 204 No Content in 349ms (ActiveRecord: 1.4ms)
28098
+ BloomRemit::Txn Load (3.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
28099
+  (0.6ms) ROLLBACK
28100
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
28101
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
28102
+  (1.2ms)  SELECT schemaname || '.' || tablename
28103
+ FROM pg_tables
28104
+ WHERE
28105
+ tablename !~ '_prt_' AND
28106
+ tablename <> 'schema_migrations' AND
28107
+ schemaname = ANY (current_schemas(false))
28108
+ 
28109
+  (1.0ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
28110
+  (10.8ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
28111
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
28112
+  (0.3ms) BEGIN
28113
+  (0.2ms) COMMIT
28114
+  (0.3ms) BEGIN
28115
+  (4.2ms) SAVEPOINT active_record_1
28116
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28117
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28118
+  (0.3ms) SAVEPOINT active_record_1
28119
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "39bafbaf-3d96-4c46-91f6-8525265361c9"], ["sender_id", "1"], ["sender_type", "User"]]
28120
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28121
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:57:48 +0000
28122
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
28123
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
28124
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
28125
+ Rendered text template (0.0ms)
28126
+ Completed 404 Not Found in 848ms (Views: 186.3ms | ActiveRecord: 0.3ms)
28127
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:57:50 +0000
28128
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
28129
+ Parameters: {"secret"=>"39bafbaf-3d96-4c46-91f6-8525265361c9", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"39bafbaf-3d96-4c46-91f6-8525265361c9"}}
28130
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "39bafbaf-3d96-4c46-91f6-8525265361c9"]]
28131
+  (3.2ms) SAVEPOINT active_record_1
28132
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
28133
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28134
+ Completed 200 OK in 24ms (Views: 0.5ms | ActiveRecord: 4.1ms)
28135
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
28136
+  (0.4ms) ROLLBACK
28137
+  (0.2ms) BEGIN
28138
+  (0.2ms) COMMIT
28139
+  (0.2ms) BEGIN
28140
+  (2.1ms) SAVEPOINT active_record_1
28141
+ SQL (1.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28142
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28143
+  (0.2ms) SAVEPOINT active_record_1
28144
+ SQL (0.4ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2f2ee2ae-94a9-44fe-942a-430b86ec487c"], ["sender_id", "2"], ["sender_type", "User"]]
28145
+  (4.8ms) RELEASE SAVEPOINT active_record_1
28146
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:57:50 +0000
28147
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
28148
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
28149
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
28150
+ Rendered text template (0.0ms)
28151
+ Completed 404 Not Found in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)
28152
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:57:50 +0000
28153
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
28154
+ Parameters: {"secret"=>"2f2ee2ae-94a9-44fe-942a-430b86ec487c", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"2f2ee2ae-94a9-44fe-942a-430b86ec487c"}}
28155
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "2f2ee2ae-94a9-44fe-942a-430b86ec487c"]]
28156
+  (0.3ms) SAVEPOINT active_record_1
28157
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
28158
+  (6.2ms) RELEASE SAVEPOINT active_record_1
28159
+ Completed 204 No Content in 258ms (ActiveRecord: 7.2ms)
28160
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
28161
+  (0.3ms) ROLLBACK
28162
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
28163
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
28164
+  (1.3ms)  SELECT schemaname || '.' || tablename
28165
+ FROM pg_tables
28166
+ WHERE
28167
+ tablename !~ '_prt_' AND
28168
+ tablename <> 'schema_migrations' AND
28169
+ schemaname = ANY (current_schemas(false))
28170
+ 
28171
+  (1.2ms) select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
28172
+  (15.3ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
28173
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
28174
+  (0.2ms) BEGIN
28175
+  (0.2ms) COMMIT
28176
+  (0.1ms) BEGIN
28177
+  (0.3ms) ROLLBACK
28178
+  (0.6ms) BEGIN
28179
+  (0.5ms) COMMIT
28180
+  (0.9ms) BEGIN
28181
+  (0.9ms) ROLLBACK
28182
+  (1.1ms) BEGIN
28183
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
28184
+  (0.4ms) COMMIT
28185
+  (8.3ms) BEGIN
28186
+ SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
28187
+  (0.7ms) COMMIT
28188
+  (0.3ms) BEGIN
28189
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
28190
+  (0.5ms) COMMIT
28191
+  (0.3ms) BEGIN
28192
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["secret", "645779a8-c874-46c9-b4f0-4a0231c3fe09"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"]]
28193
+  (0.5ms) COMMIT
28194
+ User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
28195
+ Payment Load (1.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
28196
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
28197
+  (32.1ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
28198
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
28199
+  (7.0ms) BEGIN
28200
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28201
+  (0.5ms) COMMIT
28202
+  (2.0ms) BEGIN
28203
+ SQL (1.8ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "0ddf73e9-f256-4803-a0e6-152187f52cc6"], ["sender_id", "1"], ["sender_type", "User"]]
28204
+  (3.4ms) COMMIT
28205
+ BloomRemit::Txn Load (0.6ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "0ddf73e9-f256-4803-a0e6-152187f52cc6"]]
28206
+  (2.4ms) BEGIN
28207
+ SQL (0.4ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
28208
+  (0.6ms) COMMIT
28209
+  (6.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
28210
+  (44.0ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
28211
+  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
28212
+  (0.8ms) BEGIN
28213
+  (3.8ms) COMMIT
28214
+  (0.5ms) BEGIN
28215
+  (1.0ms) ROLLBACK
28216
+  (2.4ms) BEGIN
28217
+  (0.3ms) COMMIT
28218
+  (0.3ms) BEGIN
28219
+  (9.7ms) ROLLBACK
28220
+  (0.2ms) BEGIN
28221
+  (0.2ms) COMMIT
28222
+  (0.2ms) BEGIN
28223
+  (0.3ms) ROLLBACK
28224
+  (0.2ms) BEGIN
28225
+  (3.3ms) COMMIT
28226
+  (0.2ms) BEGIN
28227
+  (0.3ms) ROLLBACK
28228
+  (3.3ms) BEGIN
28229
+  (0.2ms) COMMIT
28230
+  (0.2ms) BEGIN
28231
+  (0.2ms) ROLLBACK
28232
+  (0.2ms) BEGIN
28233
+  (0.2ms) COMMIT
28234
+  (0.2ms) BEGIN
28235
+  (0.2ms) ROLLBACK
28236
+  (0.6ms) BEGIN
28237
+  (0.4ms) COMMIT
28238
+  (0.4ms) BEGIN
28239
+  (0.3ms) ROLLBACK
28240
+  (0.2ms) BEGIN
28241
+  (0.2ms) COMMIT
28242
+  (0.3ms) BEGIN
28243
+  (5.1ms) SAVEPOINT active_record_1
28244
+ SQL (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28245
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28246
+  (6.9ms) SAVEPOINT active_record_1
28247
+ SQL (0.7ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "d321cf03-6acc-447c-9a21-ee6a09d5208d"], ["sender_id", "1"], ["sender_type", "User"]]
28248
+  (0.4ms) RELEASE SAVEPOINT active_record_1
28249
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 05:01:53 +0000
28250
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
28251
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
28252
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
28253
+ Rendered text template (0.0ms)
28254
+ Completed 404 Not Found in 168ms (Views: 166.4ms | ActiveRecord: 0.3ms)
28255
+ Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 05:01:54 +0000
28256
+ Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
28257
+ Parameters: {"secret"=>"d321cf03-6acc-447c-9a21-ee6a09d5208d", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"d321cf03-6acc-447c-9a21-ee6a09d5208d"}}
28258
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "d321cf03-6acc-447c-9a21-ee6a09d5208d"]]
28259
+  (0.1ms) SAVEPOINT active_record_1
28260
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
28261
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28262
+ Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.0ms)
28263
+ BloomRemit::Txn Load (0.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
28264
+  (0.2ms) ROLLBACK
28265
+  (0.1ms) BEGIN
28266
+  (0.1ms) COMMIT
28267
+  (0.1ms) BEGIN
28268
+  (0.1ms) SAVEPOINT active_record_1
28269
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28270
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28271
+  (0.1ms) SAVEPOINT active_record_1
28272
+ SQL (0.3ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "b47d9795-c393-41a0-89b6-1ccdc85b35d7"], ["sender_id", "2"], ["sender_type", "User"]]
28273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
28274
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 05:01:55 +0000
28275
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
28276
+ Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
28277
+ BloomRemit::Txn Load (1.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
28278
+ Rendered text template (0.0ms)
28279
+ Completed 404 Not Found in 6ms (Views: 0.6ms | ActiveRecord: 1.2ms)
28280
+ Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 05:01:55 +0000
28281
+ Processing by BloomRemit::Api::V1::TxnsController#update as JSON
28282
+ Parameters: {"secret"=>"b47d9795-c393-41a0-89b6-1ccdc85b35d7", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"b47d9795-c393-41a0-89b6-1ccdc85b35d7"}}
28283
+ BloomRemit::Txn Load (1.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", "b47d9795-c393-41a0-89b6-1ccdc85b35d7"]]
28284
+  (9.1ms) SAVEPOINT active_record_1
28285
+ SQL (0.5ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
28286
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28287
+ Completed 204 No Content in 170ms (ActiveRecord: 11.1ms)
28288
+ BloomRemit::Txn Load (0.4ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
28289
+  (0.3ms) ROLLBACK
28290
+  (0.2ms) BEGIN
28291
+  (0.7ms) COMMIT
28292
+  (0.3ms) BEGIN
28293
+  (0.3ms) SAVEPOINT active_record_1
28294
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
28295
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28296
+  (0.3ms) SAVEPOINT active_record_1
28297
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
28298
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28299
+  (0.2ms) SAVEPOINT active_record_1
28300
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
28301
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28302
+  (8.9ms) SAVEPOINT active_record_1
28303
+ SQL (0.5ms) INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["secret", "4da9118a-5f7a-499e-be7e-a74cf119ab27"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"]]
28304
+  (0.4ms) RELEASE SAVEPOINT active_record_1
28305
+  (0.3ms) ROLLBACK
28306
+  (0.2ms) BEGIN
28307
+  (0.2ms) COMMIT
28308
+  (0.2ms) BEGIN
28309
+  (0.2ms) ROLLBACK
28310
+  (0.1ms) BEGIN
28311
+  (0.2ms) COMMIT
28312
+  (0.2ms) BEGIN
28313
+  (1.0ms) SAVEPOINT active_record_1
28314
+ SQL (0.4ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
28315
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28316
+  (0.3ms) SAVEPOINT active_record_1
28317
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
28318
+  (0.4ms) RELEASE SAVEPOINT active_record_1
28319
+  (0.4ms) SAVEPOINT active_record_1
28320
+ SQL (0.6ms) INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "10dda651-4cf6-4eeb-8744-62b5032843cc"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
28321
+  (0.4ms) RELEASE SAVEPOINT active_record_1
28322
+  (0.2ms) SAVEPOINT active_record_1
28323
+ SQL (0.5ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-08-08 05:01:55.432333"], ["updated_at", "2016-08-08 05:01:55.432333"]]
28324
+  (0.4ms) RELEASE SAVEPOINT active_record_1
28325
+  (0.3ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
28326
+ BloomRemit::Response Load (0.3ms) SELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1 [["txn_id", 4]]
28327
+  (0.2ms) ROLLBACK
28328
+  (0.2ms) BEGIN
28329
+  (0.2ms) COMMIT
28330
+  (0.3ms) BEGIN
28331
+  (0.3ms) ROLLBACK
28332
+  (0.2ms) BEGIN
28333
+  (0.2ms) COMMIT
28334
+  (0.2ms) BEGIN
28335
+  (0.3ms) ROLLBACK
28336
+  (0.3ms) BEGIN
28337
+  (0.2ms) COMMIT
28338
+  (0.3ms) BEGIN
28339
+  (0.2ms) ROLLBACK
28340
+  (0.2ms) BEGIN
28341
+  (0.2ms) COMMIT
28342
+  (0.2ms) BEGIN
28343
+  (7.1ms) ROLLBACK
28344
+  (0.2ms) BEGIN
28345
+  (0.2ms) COMMIT
28346
+  (0.1ms) BEGIN
28347
+  (0.3ms) ROLLBACK
@@ -14,7 +14,32 @@ RSpec.describe "api/v1/txns" do
14
14
  }
15
15
  end
16
16
 
17
- it "updates the status of the txn" do
17
+ it "updates the status of the txn via POST" do
18
+ post(
19
+ BloomRemit::Engine.routes.url_helpers.api_v1_txn_url(txn),
20
+ {
21
+ secret: "fake",
22
+ status: "doesn't matter",
23
+ }.to_json,
24
+ headers
25
+ )
26
+ puts response.body
27
+ expect(response.status).to be 404
28
+
29
+ post(
30
+ BloomRemit::Engine.routes.url_helpers.api_v1_txn_url(txn),
31
+ {
32
+ secret: txn.secret,
33
+ status: "paid",
34
+ }.to_json,
35
+ headers
36
+ )
37
+ expect(response).to be_success
38
+ expect(txn.reload).to be_paid
39
+ end
40
+
41
+
42
+ it "updates the status of the txn via PATCH" do
18
43
  patch(
19
44
  BloomRemit::Engine.routes.url_helpers.api_v1_txn_url(txn),
20
45
  {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloom_remit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-06 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails