addresses 1.0.3 → 1.0.4
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 +4 -4
- data/app/controllers/addresses/cities_controller.rb +6 -0
- data/config/routes.rb +1 -1
- data/spec/controllers/addresses/cities_controller_spec.rb +7 -0
- data/spec/dummy/Gemfile.lock +1 -1
- data/spec/dummy/log/development.log +231 -0
- data/spec/dummy/log/test.log +386 -0
- data/spec/requests/cities_spec.rb +14 -1
- data/spec/routing/cities_routing_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cacaf27c0c21dbb7e7aed5c2f01f4c952be99858
|
4
|
+
data.tar.gz: d81969670a2e69e50261e8924a30f747a9f50d50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6934812395d383eafd2165a725cac1e89e6c0ca020d0945b386028c2a5f17fa3bfaf9e663704366c661660102675811eebf0718c26bd20f576809c37e17ef5c
|
7
|
+
data.tar.gz: 46962a8ca0b4b91a85dc615ecc75207099414c3701f72f4b7c67192950feb75851b23efb3ea568aba423e1836ef507bb83af58787d2a325cb00de2f7336342f0
|
data/config/routes.rb
CHANGED
@@ -13,4 +13,11 @@ RSpec.describe Addresses::CitiesController, type: :controller do
|
|
13
13
|
it { expect(response).to have_http_status(:success) }
|
14
14
|
it { expect(assigns(:cities)).to eq([city]) }
|
15
15
|
end
|
16
|
+
|
17
|
+
describe "GET #show" do
|
18
|
+
before { get :show, params: { id: city.id, format: :json } }
|
19
|
+
|
20
|
+
it { expect(response).to have_http_status(:success) }
|
21
|
+
it { expect(assigns(:city)).to eq(city) }
|
22
|
+
end
|
16
23
|
end
|
data/spec/dummy/Gemfile.lock
CHANGED
@@ -315728,3 +315728,234 @@ Processing by Addresses::ZipcodesController#show as JSON
|
|
315728
315728
|
Completed 200 OK in 101ms (Views: 0.8ms | ActiveRecord: 3.3ms)
|
315729
315729
|
|
315730
315730
|
|
315731
|
+
Started GET "/cities/" for ::1 at 2016-11-23 12:31:03 -0200
|
315732
|
+
|
315733
|
+
ActionController::RoutingError (No route matches [GET] "/cities"):
|
315734
|
+
|
315735
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
|
315736
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
315737
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
|
315738
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
|
315739
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
|
315740
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
315741
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
|
315742
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
|
315743
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
|
315744
|
+
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
|
315745
|
+
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
|
315746
|
+
activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
315747
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
315748
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
|
315749
|
+
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
|
315750
|
+
railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
|
315751
|
+
rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
|
315752
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
315753
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
315754
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
315755
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
|
315756
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
|
315757
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms)
|
315758
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (47.3ms)
|
315759
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [4 times] (1.3ms)
|
315760
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (57.2ms)
|
315761
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
|
315762
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (27.8ms)
|
315763
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (296.4ms)
|
315764
|
+
Started GET "/cities" for ::1 at 2016-11-23 12:31:14 -0200
|
315765
|
+
|
315766
|
+
ActionController::RoutingError (No route matches [GET] "/cities"):
|
315767
|
+
|
315768
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
|
315769
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
315770
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
|
315771
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
|
315772
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
|
315773
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
315774
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
|
315775
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
|
315776
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
|
315777
|
+
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
|
315778
|
+
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
|
315779
|
+
activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
315780
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
315781
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
|
315782
|
+
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
|
315783
|
+
railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
|
315784
|
+
rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
|
315785
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
315786
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
315787
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
315788
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
|
315789
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
|
315790
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
|
315791
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (1.1ms)
|
315792
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [4 times] (1.4ms)
|
315793
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
|
315794
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
|
315795
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
|
315796
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (119.2ms)
|
315797
|
+
Started GET "/cities" for ::1 at 2016-11-23 12:31:23 -0200
|
315798
|
+
|
315799
|
+
ActionController::RoutingError (No route matches [GET] "/cities"):
|
315800
|
+
|
315801
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
|
315802
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
315803
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
|
315804
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
|
315805
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
|
315806
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
315807
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
|
315808
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
|
315809
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
|
315810
|
+
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
|
315811
|
+
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
|
315812
|
+
activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
315813
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
315814
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
|
315815
|
+
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
|
315816
|
+
railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
|
315817
|
+
rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
|
315818
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
315819
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
315820
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
315821
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
|
315822
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
|
315823
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
|
315824
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (1.2ms)
|
315825
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [4 times] (1.5ms)
|
315826
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
|
315827
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
|
315828
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
|
315829
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (121.8ms)
|
315830
|
+
Started GET "/cities.json" for ::1 at 2016-11-23 12:31:34 -0200
|
315831
|
+
|
315832
|
+
ActionController::RoutingError (No route matches [GET] "/cities.json"):
|
315833
|
+
|
315834
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
|
315835
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
315836
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
|
315837
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
|
315838
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
|
315839
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
315840
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
|
315841
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
|
315842
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
|
315843
|
+
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
|
315844
|
+
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
|
315845
|
+
activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
315846
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
315847
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
|
315848
|
+
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
|
315849
|
+
railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
|
315850
|
+
rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
|
315851
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
315852
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
315853
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
315854
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
|
315855
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
|
315856
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms)
|
315857
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (1.4ms)
|
315858
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [4 times] (1.6ms)
|
315859
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.8ms)
|
315860
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
|
315861
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
|
315862
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (119.9ms)
|
315863
|
+
Started GET "/cities.json?state_id=33" for ::1 at 2016-11-23 12:31:49 -0200
|
315864
|
+
|
315865
|
+
ActionController::RoutingError (No route matches [GET] "/cities.json"):
|
315866
|
+
|
315867
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
|
315868
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
315869
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
|
315870
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
|
315871
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
|
315872
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
315873
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
|
315874
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
|
315875
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
|
315876
|
+
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
|
315877
|
+
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
|
315878
|
+
activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
315879
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
315880
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
|
315881
|
+
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
|
315882
|
+
railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
|
315883
|
+
rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
|
315884
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
315885
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
315886
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
315887
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
|
315888
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
|
315889
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
|
315890
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (1.9ms)
|
315891
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [4 times] (1.9ms)
|
315892
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.0ms)
|
315893
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
|
315894
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.4ms)
|
315895
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (123.8ms)
|
315896
|
+
Started GET "/zipcodes/05012010.json" for ::1 at 2016-11-23 12:32:21 -0200
|
315897
|
+
|
315898
|
+
ActionController::RoutingError (No route matches [GET] "/zipcodes/05012010.json"):
|
315899
|
+
|
315900
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
|
315901
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
315902
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
|
315903
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
|
315904
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
|
315905
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
315906
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
|
315907
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
|
315908
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
|
315909
|
+
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
|
315910
|
+
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
|
315911
|
+
activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
315912
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
315913
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
|
315914
|
+
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
|
315915
|
+
railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
|
315916
|
+
rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
|
315917
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
315918
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
315919
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
315920
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
|
315921
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
|
315922
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
|
315923
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (1.0ms)
|
315924
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [4 times] (1.8ms)
|
315925
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.0ms)
|
315926
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
|
315927
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms)
|
315928
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (116.6ms)
|
315929
|
+
Started GET "/zipcodes/05012010.json" for ::1 at 2016-11-23 12:32:35 -0200
|
315930
|
+
|
315931
|
+
ActionController::RoutingError (No route matches [GET] "/zipcodes/05012010.json"):
|
315932
|
+
|
315933
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
|
315934
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
|
315935
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
|
315936
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
|
315937
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
|
315938
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
315939
|
+
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
|
315940
|
+
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
|
315941
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
|
315942
|
+
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
|
315943
|
+
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
|
315944
|
+
activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
315945
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
|
315946
|
+
actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
|
315947
|
+
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
|
315948
|
+
railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
|
315949
|
+
rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
|
315950
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
315951
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
315952
|
+
/Users/joice/.rbenv/versions/2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
315953
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
|
315954
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
|
315955
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms)
|
315956
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [1 times] (0.9ms)
|
315957
|
+
Rendered collection of /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [4 times] (1.3ms)
|
315958
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms)
|
315959
|
+
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
|
315960
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
|
315961
|
+
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (122.5ms)
|
data/spec/dummy/log/test.log
CHANGED
@@ -13341,3 +13341,389 @@ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
|
|
13341
13341
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_addresses" ("number", "created_at", "updated_at", "zipcode_id") VALUES (?, ?, ?, ?)[0m [["number", "Number"], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC], ["zipcode_id", 1]]
|
13342
13342
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13343
13343
|
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
13344
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13345
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13346
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13347
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
13348
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13349
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13350
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13351
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13352
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13353
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13354
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13355
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13356
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13357
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13358
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13359
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13360
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13361
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13362
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13363
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
13364
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13365
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13366
|
+
[1m[35mSQL (12.0ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13367
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13368
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13369
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13370
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13371
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13372
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13373
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13374
|
+
Processing by Addresses::CitiesController#show as JSON
|
13375
|
+
Parameters: {"id"=>"1"}
|
13376
|
+
[1m[36mAddresses::City Load (0.2ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13377
|
+
Completed 200 OK in 14ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
13378
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13379
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13380
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13381
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13382
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13383
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13384
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13385
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13386
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13387
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13388
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13389
|
+
Processing by Addresses::CitiesController#show as JSON
|
13390
|
+
Parameters: {"id"=>"1"}
|
13391
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13392
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
13393
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13394
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
13395
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13396
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13397
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13398
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13399
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13400
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13401
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13402
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13403
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13404
|
+
Processing by Addresses::CitiesController#index as JSON
|
13405
|
+
Parameters: {"state_id"=>"1"}
|
13406
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13407
|
+
[1m[36mAddresses::City Load (0.2ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13408
|
+
Completed 200 OK in 36ms (Views: 4.8ms | ActiveRecord: 0.3ms)
|
13409
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
13410
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13411
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13412
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13413
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13414
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13415
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13416
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13417
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13418
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:36:19 UTC], ["updated_at", 2016-11-23 14:36:19 UTC]]
|
13419
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13420
|
+
Processing by Addresses::CitiesController#index as JSON
|
13421
|
+
Parameters: {"state_id"=>"1"}
|
13422
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13423
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13424
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
|
13425
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
13426
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13427
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13428
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13429
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13430
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13431
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13432
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13433
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13434
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13435
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13436
|
+
Processing by Addresses::CitiesController#index as JSON
|
13437
|
+
Parameters: {"state_id"=>"1"}
|
13438
|
+
[1m[36mAddresses::State Load (0.2ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13439
|
+
[1m[36mAddresses::City Load (0.2ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13440
|
+
Completed 200 OK in 17ms (Views: 3.4ms | ActiveRecord: 0.4ms)
|
13441
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13442
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13443
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13444
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13445
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13446
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13447
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13448
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13449
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13450
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13451
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13452
|
+
Processing by Addresses::CitiesController#index as JSON
|
13453
|
+
Parameters: {"state_id"=>"1"}
|
13454
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13455
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13456
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
|
13457
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
13458
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13459
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13460
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13461
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13462
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13463
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13464
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13465
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13466
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13467
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13468
|
+
Processing by Addresses::CitiesController#show as JSON
|
13469
|
+
Parameters: {"id"=>"1"}
|
13470
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13471
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
13472
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
13473
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13474
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13475
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13476
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13477
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13478
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13479
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13480
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13481
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:36:39 UTC], ["updated_at", 2016-11-23 14:36:39 UTC]]
|
13482
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13483
|
+
Processing by Addresses::CitiesController#show as JSON
|
13484
|
+
Parameters: {"id"=>"1"}
|
13485
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13486
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
13487
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
13488
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13489
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13490
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:38:28 UTC], ["updated_at", 2016-11-23 14:38:28 UTC]]
|
13491
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13492
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13493
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:38:28 UTC], ["updated_at", 2016-11-23 14:38:28 UTC]]
|
13494
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13495
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13496
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:38:28 UTC], ["updated_at", 2016-11-23 14:38:28 UTC]]
|
13497
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13498
|
+
Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2016-11-23 12:38:28 -0200
|
13499
|
+
Processing by Addresses::CitiesController#index as JSON
|
13500
|
+
Parameters: {"state_id"=>"1"}
|
13501
|
+
[1m[36mAddresses::State Load (0.2ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13502
|
+
[1m[36mAddresses::City Load (0.2ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13503
|
+
Completed 200 OK in 16ms (Views: 2.7ms | ActiveRecord: 0.3ms)
|
13504
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
13505
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13506
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13507
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:38:35 UTC], ["updated_at", 2016-11-23 14:38:35 UTC]]
|
13508
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13509
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13510
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:38:35 UTC], ["updated_at", 2016-11-23 14:38:35 UTC]]
|
13511
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13512
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13513
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:38:35 UTC], ["updated_at", 2016-11-23 14:38:35 UTC]]
|
13514
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13515
|
+
Started GET "/addresses/cities?id=1&format=json" for 127.0.0.1 at 2016-11-23 12:38:35 -0200
|
13516
|
+
Processing by Addresses::CitiesController#index as JSON
|
13517
|
+
Parameters: {"id"=>"1"}
|
13518
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
13519
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
13520
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
13521
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13522
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13523
|
+
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:39:21 UTC], ["updated_at", 2016-11-23 14:39:21 UTC]]
|
13524
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13525
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13526
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:39:21 UTC], ["updated_at", 2016-11-23 14:39:21 UTC]]
|
13527
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13528
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13529
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:39:21 UTC], ["updated_at", 2016-11-23 14:39:21 UTC]]
|
13530
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13531
|
+
Started GET "/addresses/cities?id=1&format=json" for 127.0.0.1 at 2016-11-23 12:39:21 -0200
|
13532
|
+
Processing by Addresses::CitiesController#index as JSON
|
13533
|
+
Parameters: {"id"=>"1"}
|
13534
|
+
[1m[36mAddresses::State Load (0.2ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
13535
|
+
Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)
|
13536
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
13537
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13538
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13539
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:39:21 UTC], ["updated_at", 2016-11-23 14:39:21 UTC]]
|
13540
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13541
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13542
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:39:21 UTC], ["updated_at", 2016-11-23 14:39:21 UTC]]
|
13543
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13544
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13545
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:39:21 UTC], ["updated_at", 2016-11-23 14:39:21 UTC]]
|
13546
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13547
|
+
Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2016-11-23 12:39:21 -0200
|
13548
|
+
Processing by Addresses::CitiesController#index as JSON
|
13549
|
+
Parameters: {"state_id"=>"1"}
|
13550
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13551
|
+
[1m[36mAddresses::City Load (0.2ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13552
|
+
Completed 200 OK in 14ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
13553
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13554
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13555
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13556
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:39:46 UTC], ["updated_at", 2016-11-23 14:39:46 UTC]]
|
13557
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13558
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13559
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:39:46 UTC], ["updated_at", 2016-11-23 14:39:46 UTC]]
|
13560
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13561
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13562
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:39:46 UTC], ["updated_at", 2016-11-23 14:39:46 UTC]]
|
13563
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13564
|
+
Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2016-11-23 12:39:46 -0200
|
13565
|
+
Processing by Addresses::CitiesController#index as JSON
|
13566
|
+
Parameters: {"state_id"=>"1"}
|
13567
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13568
|
+
[1m[36mAddresses::City Load (0.2ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13569
|
+
Completed 200 OK in 16ms (Views: 2.8ms | ActiveRecord: 0.3ms)
|
13570
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13571
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13572
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13573
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:39:46 UTC], ["updated_at", 2016-11-23 14:39:46 UTC]]
|
13574
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13575
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13576
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:39:46 UTC], ["updated_at", 2016-11-23 14:39:46 UTC]]
|
13577
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13578
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13579
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:39:46 UTC], ["updated_at", 2016-11-23 14:39:46 UTC]]
|
13580
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13581
|
+
Started GET "/addresses/cities/?id=1&format=json" for 127.0.0.1 at 2016-11-23 12:39:46 -0200
|
13582
|
+
Processing by Addresses::CitiesController#index as JSON
|
13583
|
+
Parameters: {"id"=>"1"}
|
13584
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
13585
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
13586
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13587
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13588
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13589
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:41:38 UTC], ["updated_at", 2016-11-23 14:41:38 UTC]]
|
13590
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13591
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13592
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:41:38 UTC], ["updated_at", 2016-11-23 14:41:38 UTC]]
|
13593
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13594
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13595
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:41:38 UTC], ["updated_at", 2016-11-23 14:41:38 UTC]]
|
13596
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13597
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13598
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13599
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13600
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:41:38 UTC], ["updated_at", 2016-11-23 14:41:38 UTC]]
|
13601
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13602
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13603
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:41:38 UTC], ["updated_at", 2016-11-23 14:41:38 UTC]]
|
13604
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13605
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13606
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:41:38 UTC], ["updated_at", 2016-11-23 14:41:38 UTC]]
|
13607
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13608
|
+
Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2016-11-23 12:41:38 -0200
|
13609
|
+
Processing by Addresses::CitiesController#index as JSON
|
13610
|
+
Parameters: {"state_id"=>"1"}
|
13611
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13612
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13613
|
+
Completed 200 OK in 15ms (Views: 2.6ms | ActiveRecord: 0.3ms)
|
13614
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13615
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13616
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13617
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:41:58 UTC], ["updated_at", 2016-11-23 14:41:58 UTC]]
|
13618
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13619
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13620
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:41:58 UTC], ["updated_at", 2016-11-23 14:41:58 UTC]]
|
13621
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13622
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13623
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:41:58 UTC], ["updated_at", 2016-11-23 14:41:58 UTC]]
|
13624
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13625
|
+
Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2016-11-23 12:41:58 -0200
|
13626
|
+
Processing by Addresses::CitiesController#index as JSON
|
13627
|
+
Parameters: {"state_id"=>"1"}
|
13628
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13629
|
+
[1m[36mAddresses::City Load (0.2ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13630
|
+
Completed 200 OK in 16ms (Views: 2.7ms | ActiveRecord: 0.3ms)
|
13631
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13632
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13633
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13634
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:41:58 UTC], ["updated_at", 2016-11-23 14:41:58 UTC]]
|
13635
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13636
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13637
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:41:58 UTC], ["updated_at", 2016-11-23 14:41:58 UTC]]
|
13638
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13639
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13640
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:41:58 UTC], ["updated_at", 2016-11-23 14:41:58 UTC]]
|
13641
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13642
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
13643
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13644
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13645
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:43:38 UTC], ["updated_at", 2016-11-23 14:43:38 UTC]]
|
13646
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13647
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13648
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:43:38 UTC], ["updated_at", 2016-11-23 14:43:38 UTC]]
|
13649
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13650
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13651
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:43:38 UTC], ["updated_at", 2016-11-23 14:43:38 UTC]]
|
13652
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13653
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13654
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13655
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13656
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:43:54 UTC], ["updated_at", 2016-11-23 14:43:54 UTC]]
|
13657
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13658
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13659
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:43:54 UTC], ["updated_at", 2016-11-23 14:43:54 UTC]]
|
13660
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13661
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13662
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:43:54 UTC], ["updated_at", 2016-11-23 14:43:54 UTC]]
|
13663
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13664
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13665
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13666
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13667
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:44:26 UTC], ["updated_at", 2016-11-23 14:44:26 UTC]]
|
13668
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13669
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13670
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:44:26 UTC], ["updated_at", 2016-11-23 14:44:26 UTC]]
|
13671
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13672
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13673
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:44:26 UTC], ["updated_at", 2016-11-23 14:44:26 UTC]]
|
13674
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13675
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13676
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13677
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13678
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:44:39 UTC], ["updated_at", 2016-11-23 14:44:39 UTC]]
|
13679
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13680
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13681
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:44:39 UTC], ["updated_at", 2016-11-23 14:44:39 UTC]]
|
13682
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13683
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13684
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:44:39 UTC], ["updated_at", 2016-11-23 14:44:39 UTC]]
|
13685
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13686
|
+
Started GET "/addresses/cities/1?format=json" for 127.0.0.1 at 2016-11-23 12:44:39 -0200
|
13687
|
+
Processing by Addresses::CitiesController#show as JSON
|
13688
|
+
Parameters: {"id"=>"1"}
|
13689
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13690
|
+
Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.1ms)
|
13691
|
+
[1m[35m (23.5ms)[0m [1m[31mrollback transaction[0m
|
13692
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13693
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13694
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:44:57 UTC], ["updated_at", 2016-11-23 14:44:57 UTC]]
|
13695
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13696
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13697
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:44:57 UTC], ["updated_at", 2016-11-23 14:44:57 UTC]]
|
13698
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13699
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13700
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:44:57 UTC], ["updated_at", 2016-11-23 14:44:57 UTC]]
|
13701
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13702
|
+
Started GET "/addresses/cities/1?format=json" for 127.0.0.1 at 2016-11-23 12:44:57 -0200
|
13703
|
+
Processing by Addresses::CitiesController#show as JSON
|
13704
|
+
Parameters: {"id"=>"1"}
|
13705
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13706
|
+
Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.1ms)
|
13707
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
13708
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
13709
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13710
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:45:52 UTC], ["updated_at", 2016-11-23 14:45:52 UTC]]
|
13711
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13712
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13713
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:45:52 UTC], ["updated_at", 2016-11-23 14:45:52 UTC]]
|
13714
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13715
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13716
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:45:52 UTC], ["updated_at", 2016-11-23 14:45:52 UTC]]
|
13717
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13718
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
13719
|
+
[1m[35m (0.6ms)[0m [1m[36mbegin transaction[0m
|
13720
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13721
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-11-23 14:46:04 UTC], ["updated_at", 2016-11-23 14:46:04 UTC]]
|
13722
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13723
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13724
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-11-23 14:46:04 UTC], ["updated_at", 2016-11-23 14:46:04 UTC]]
|
13725
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13726
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13727
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-11-23 14:46:04 UTC], ["updated_at", 2016-11-23 14:46:04 UTC]]
|
13728
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13729
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
@@ -8,11 +8,24 @@ RSpec.describe Addresses::CitiesController, type: :request do
|
|
8
8
|
describe "GET /cities" do
|
9
9
|
before { get '/addresses/cities', params: { state_id: state.id, format: "json" } }
|
10
10
|
|
11
|
-
it "should return an
|
11
|
+
it "should return an list of cities" do
|
12
12
|
json = JSON.parse(response.body)
|
13
13
|
|
14
14
|
expect(response.status).to be(200)
|
15
|
+
expect(json.size).to eq(1)
|
15
16
|
expect(json[0]["name"]).to eq(city.name)
|
16
17
|
end
|
17
18
|
end
|
19
|
+
|
20
|
+
describe "GET /cities/:id" do
|
21
|
+
before { get "/addresses/cities/#{city.id}", params: { format: "json" } }
|
22
|
+
|
23
|
+
it "should return a specific city" do
|
24
|
+
json = JSON.parse(response.body)
|
25
|
+
|
26
|
+
expect(response.status).to be(200)
|
27
|
+
expect(json["id"]).to eq(city.id)
|
28
|
+
expect(json["name"]).to eq(city.name)
|
29
|
+
end
|
30
|
+
end
|
18
31
|
end
|
@@ -7,5 +7,9 @@ RSpec.describe Addresses::CitiesController, type: :routing do
|
|
7
7
|
it "routes to #index" do
|
8
8
|
expect(get: "/cities").to route_to("addresses/cities#index")
|
9
9
|
end
|
10
|
+
|
11
|
+
it "routes to #show" do
|
12
|
+
expect(get: "/cities/1").to route_to("addresses/cities#show", id: '1')
|
13
|
+
end
|
10
14
|
end
|
11
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: addresses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilbert Ribeiro
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-11-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|