lina 0.0.3 → 0.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.
@@ -19698,3 +19698,136 @@ Admin::PostsControllerTest: test_should_get_index
19698
19698
  Processing by Admin::PostsController#index as HTML
19699
19699
  Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
19700
19700
   (0.1ms) rollback transaction
19701
+  (0.1ms) begin transaction
19702
+ -----------------------------------
19703
+ Lina::TreeTest: test_.paths_to_tree
19704
+ -----------------------------------
19705
+  (0.1ms) rollback transaction
19706
+  (0.1ms) begin transaction
19707
+ ------------------------------------------
19708
+ LabelsControllerTest: test_should_get_show
19709
+ ------------------------------------------
19710
+ Processing by LabelsController#show as HTML
19711
+ Parameters: {"post_id"=>"1", "id"=>"1"}
19712
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms)
19713
+  (0.1ms) rollback transaction
19714
+  (0.3ms) begin transaction
19715
+ -------------------------------------------
19716
+ LabelsControllerTest: test_should_get_index
19717
+ -------------------------------------------
19718
+ Processing by LabelsController#index as HTML
19719
+ Parameters: {"post_id"=>"1"}
19720
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
19721
+  (0.1ms) rollback transaction
19722
+  (0.0ms) begin transaction
19723
+ -----------------------
19724
+ LinaTest: test_.version
19725
+ -----------------------
19726
+  (0.0ms) rollback transaction
19727
+  (0.0ms) begin transaction
19728
+ -----------------------------------------------------------
19729
+ Lina::ViewGeneratorTest: test_generator_runs_without_errors
19730
+ -----------------------------------------------------------
19731
+  (0.1ms) rollback transaction
19732
+  (0.0ms) begin transaction
19733
+ -------------------------------------------------
19734
+ ArraysControllerTest: test_should_get_index_array
19735
+ -------------------------------------------------
19736
+ Processing by ArraysController#index as HTML
19737
+ Parameters: {"name"=>"string"}
19738
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)
19739
+ Processing by ArraysController#index as HTML
19740
+ Parameters: {"name"=>"array"}
19741
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
19742
+ Processing by ArraysController#index as HTML
19743
+ Parameters: {"name"=>"other"}
19744
+ Completed 500 Internal Server Error in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)
19745
+  (0.1ms) rollback transaction
19746
+  (0.1ms) begin transaction
19747
+ -------------------------------------------------
19748
+ Admin::PostsControllerTest: test_should_get_index
19749
+ -------------------------------------------------
19750
+ Processing by Admin::PostsController#index as HTML
19751
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
19752
+  (0.1ms) rollback transaction
19753
+  (0.0ms) begin transaction
19754
+ ---------------------------------------------------------
19755
+ Lina::SchemaControllerTest: test_Lina::ApiSpecReturnError
19756
+ ---------------------------------------------------------
19757
+  (0.1ms) rollback transaction
19758
+  (0.1ms) begin transaction
19759
+ ---------------------------------------------------------
19760
+ Lina::SchemaControllerTest: test_Lina::ApiSpecParamsError
19761
+ ---------------------------------------------------------
19762
+  (0.1ms) rollback transaction
19763
+  (0.1ms) begin transaction
19764
+ ---------------------------------------------------
19765
+ Lina::SchemaControllerTest: test_Lina::ApiSpecError
19766
+ ---------------------------------------------------
19767
+  (0.1ms) rollback transaction
19768
+  (0.1ms) begin transaction
19769
+ --------------------------------------------------
19770
+ NestedObjectsControllerTest: test_should_get_index
19771
+ --------------------------------------------------
19772
+ Processing by NestedObjectsController#index as HTML
19773
+ Rendered nested_objects/index.json.jbuilder (0.5ms)
19774
+ Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.0ms)
19775
+  (0.1ms) rollback transaction
19776
+  (0.0ms) begin transaction
19777
+ --------------------------------
19778
+ DesksControllerTest: test_#index
19779
+ --------------------------------
19780
+ Processing by DesksController#index as HTML
19781
+ Rendered desks/index.json.jbuilder (0.4ms)
19782
+ Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
19783
+  (0.1ms) rollback transaction
19784
+  (0.1ms) begin transaction
19785
+ ---------------------------------------
19786
+ DesksControllerTest: test_default_value
19787
+ ---------------------------------------
19788
+ Processing by DesksController#default_value as HTML
19789
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
19790
+ Processing by DesksController#default_value as HTML
19791
+ Parameters: {"filter"=>"1"}
19792
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
19793
+  (0.0ms) rollback transaction
19794
+  (0.1ms) begin transaction
19795
+ -----------------------------------------------
19796
+ DesksControllerTest: test_#show_validate_failed
19797
+ -----------------------------------------------
19798
+ Processing by DesksController#show as HTML
19799
+ Parameters: {"filter_name"=>"xxxxxx", "id"=>"1"}
19800
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
19801
+  (0.0ms) rollback transaction
19802
+  (0.0ms) begin transaction
19803
+ --------------------------------------------------------
19804
+ DesksControllerTest: test_#update_return_validate_failed
19805
+ --------------------------------------------------------
19806
+ Processing by DesksController#update as HTML
19807
+ Parameters: {"id"=>"1"}
19808
+ Completed 500 Internal Server Error in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
19809
+  (0.0ms) rollback transaction
19810
+  (0.0ms) begin transaction
19811
+ ------------------------------------------------
19812
+ Lina::ApidocControllerTest: test_CRUD_controller
19813
+ ------------------------------------------------
19814
+ Processing by Lina::ApidocController#index as HTML
19815
+ Rendered /Users/yafeilee/workspace/lina/app/views/lina/apidoc/index.html.erb within layouts/lina/application (11.0ms)
19816
+ Completed 200 OK in 3808ms (Views: 3802.3ms | ActiveRecord: 0.0ms)
19817
+  (0.1ms) rollback transaction
19818
+  (0.1ms) begin transaction
19819
+ -------------------------------------------------
19820
+ Lina::ApidocControllerTest: test_more_controllers
19821
+ -------------------------------------------------
19822
+ Processing by Lina::ApidocController#index as HTML
19823
+ Rendered /Users/yafeilee/workspace/lina/app/views/lina/apidoc/index.html.erb within layouts/lina/application (0.3ms)
19824
+ Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 0.0ms)
19825
+  (0.1ms) rollback transaction
19826
+  (0.0ms) begin transaction
19827
+ ----------------------------------------------------
19828
+ Lina::ApidocControllerTest: test_only_one_controller
19829
+ ----------------------------------------------------
19830
+ Processing by Lina::ApidocController#index as HTML
19831
+ Rendered /Users/yafeilee/workspace/lina/app/views/lina/apidoc/index.html.erb within layouts/lina/application (0.3ms)
19832
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)
19833
+  (0.1ms) rollback transaction
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class NestedObjectsControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Li Yafei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -250,10 +250,12 @@ files:
250
250
  - test/dummy/app/controllers/arrays_controller.rb
251
251
  - test/dummy/app/controllers/desks_controller.rb
252
252
  - test/dummy/app/controllers/labels_controller.rb
253
+ - test/dummy/app/controllers/nested_objects_controller.rb
253
254
  - test/dummy/app/controllers/posts_controller.rb
254
255
  - test/dummy/app/helpers/application_helper.rb
255
256
  - test/dummy/app/views/desks/index.json.jbuilder
256
257
  - test/dummy/app/views/layouts/application.html.erb
258
+ - test/dummy/app/views/nested_objects/index.json.jbuilder
257
259
  - test/dummy/bin/bundle
258
260
  - test/dummy/bin/rails
259
261
  - test/dummy/bin/rake
@@ -290,6 +292,7 @@ files:
290
292
  - test/dummy/test/controllers/arrays_controller_test.rb
291
293
  - test/dummy/test/controllers/desks_controller_test.rb
292
294
  - test/dummy/test/controllers/labels_controller_test.rb
295
+ - test/dummy/test/controllers/nested_objects_controller_test.rb
293
296
  - test/dummy/test/controllers/posts_controller_test.rb
294
297
  - test/integration/navigation_test.rb
295
298
  - test/lib/generators/lina/lina/api_generator_test.rb
@@ -330,10 +333,12 @@ test_files:
330
333
  - test/dummy/app/controllers/arrays_controller.rb
331
334
  - test/dummy/app/controllers/desks_controller.rb
332
335
  - test/dummy/app/controllers/labels_controller.rb
336
+ - test/dummy/app/controllers/nested_objects_controller.rb
333
337
  - test/dummy/app/controllers/posts_controller.rb
334
338
  - test/dummy/app/helpers/application_helper.rb
335
339
  - test/dummy/app/views/desks/index.json.jbuilder
336
340
  - test/dummy/app/views/layouts/application.html.erb
341
+ - test/dummy/app/views/nested_objects/index.json.jbuilder
337
342
  - test/dummy/bin/bundle
338
343
  - test/dummy/bin/rails
339
344
  - test/dummy/bin/rake
@@ -372,6 +377,7 @@ test_files:
372
377
  - test/dummy/test/controllers/arrays_controller_test.rb
373
378
  - test/dummy/test/controllers/desks_controller_test.rb
374
379
  - test/dummy/test/controllers/labels_controller_test.rb
380
+ - test/dummy/test/controllers/nested_objects_controller_test.rb
375
381
  - test/dummy/test/controllers/posts_controller_test.rb
376
382
  - test/integration/navigation_test.rb
377
383
  - test/lib/generators/lina/lina/api_generator_test.rb