rails_admin 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rails_admin might be problematic. Click here for more details.

Files changed (120) hide show
  1. data/Gemfile +2 -2
  2. data/README.md +13 -6
  3. data/app/assets/images/rails_admin/aristo/images/bg_fallback.png +0 -0
  4. data/app/assets/images/rails_admin/aristo/images/icon_sprite.png +0 -0
  5. data/app/assets/images/rails_admin/aristo/images/progress_bar.gif +0 -0
  6. data/app/assets/images/rails_admin/aristo/images/slider_handles.png +0 -0
  7. data/app/assets/images/rails_admin/aristo/images/ui-icons_222222_256x240.png +0 -0
  8. data/app/assets/images/rails_admin/aristo/images/ui-icons_454545_256x240.png +0 -0
  9. data/app/assets/images/rails_admin/bullet_white.png +0 -0
  10. data/app/assets/images/rails_admin/calendar.png +0 -0
  11. data/app/assets/images/rails_admin/clock.png +0 -0
  12. data/app/assets/images/rails_admin/colorpicker/colorpicker_background.png +0 -0
  13. data/app/assets/images/rails_admin/colorpicker/colorpicker_hex.png +0 -0
  14. data/app/assets/images/rails_admin/colorpicker/colorpicker_hsb_b.png +0 -0
  15. data/app/assets/images/rails_admin/colorpicker/colorpicker_hsb_h.png +0 -0
  16. data/app/assets/images/rails_admin/colorpicker/colorpicker_hsb_s.png +0 -0
  17. data/app/assets/images/rails_admin/colorpicker/colorpicker_overlay.png +0 -0
  18. data/app/assets/images/rails_admin/colorpicker/colorpicker_rgb_b.png +0 -0
  19. data/app/assets/images/rails_admin/colorpicker/colorpicker_rgb_g.png +0 -0
  20. data/app/assets/images/rails_admin/colorpicker/colorpicker_rgb_r.png +0 -0
  21. data/app/assets/images/rails_admin/colorpicker/colorpicker_select.gif +0 -0
  22. data/app/assets/images/rails_admin/colorpicker/colorpicker_submit.png +0 -0
  23. data/app/assets/images/rails_admin/colorpicker/custom_background.png +0 -0
  24. data/app/assets/images/rails_admin/colorpicker/custom_hex.png +0 -0
  25. data/app/assets/images/rails_admin/colorpicker/custom_hsb_b.png +0 -0
  26. data/app/assets/images/rails_admin/colorpicker/custom_hsb_h.png +0 -0
  27. data/app/assets/images/rails_admin/colorpicker/custom_hsb_s.png +0 -0
  28. data/app/assets/images/rails_admin/colorpicker/custom_rgb_b.png +0 -0
  29. data/app/assets/images/rails_admin/colorpicker/custom_rgb_g.png +0 -0
  30. data/app/assets/images/rails_admin/colorpicker/custom_rgb_r.png +0 -0
  31. data/app/assets/images/rails_admin/colorpicker/custom_submit.png +0 -0
  32. data/app/assets/images/rails_admin/colorpicker/select.png +0 -0
  33. data/app/assets/images/rails_admin/colorpicker/select2.png +0 -0
  34. data/app/assets/images/rails_admin/colorpicker/slider.png +0 -0
  35. data/app/assets/images/rails_admin/logo.png +0 -0
  36. data/app/assets/images/rails_admin/magnifier.png +0 -0
  37. data/app/assets/images/rails_admin/multiselect/icon_sprite.png +0 -0
  38. data/app/assets/images/rails_admin/multiselect/ui-icon-circle-triangle-n-dark.png +0 -0
  39. data/app/assets/images/rails_admin/multiselect/ui-icon-circle-triangle-n-light.png +0 -0
  40. data/app/assets/images/rails_admin/multiselect/ui-icon-circle-triangle-s-dark.png +0 -0
  41. data/app/assets/images/rails_admin/multiselect/ui-icon-circle-triangle-s-light.png +0 -0
  42. data/app/assets/stylesheets/rails_admin/aristo/images/bg_fallback.png +0 -0
  43. data/app/assets/stylesheets/rails_admin/aristo/images/icon_sprite.png +0 -0
  44. data/app/assets/stylesheets/rails_admin/aristo/images/progress_bar.gif +0 -0
  45. data/app/assets/stylesheets/rails_admin/aristo/images/slider_handles.png +0 -0
  46. data/app/assets/stylesheets/rails_admin/aristo/images/ui-icons_222222_256x240.png +0 -0
  47. data/app/assets/stylesheets/rails_admin/aristo/images/ui-icons_454545_256x240.png +0 -0
  48. data/app/assets/stylesheets/rails_admin/jquery.colorpicker.css.scss +1 -0
  49. data/app/controllers/rails_admin/main_controller.rb +1 -1
  50. data/app/helpers/rails_admin/application_helper.rb +3 -2
  51. data/app/views/rails_admin/main/index.html.haml +1 -1
  52. data/lib/generators/rails_admin/install_generator.rb +1 -1
  53. data/lib/rails_admin/abstract_model.rb +4 -0
  54. data/lib/rails_admin/adapters/active_record.rb +4 -0
  55. data/lib/rails_admin/adapters/mongoid.rb +6 -0
  56. data/lib/rails_admin/adapters/mongoid/abstract_object.rb +3 -3
  57. data/lib/rails_admin/config.rb +9 -12
  58. data/lib/rails_admin/config/actions/base.rb +4 -3
  59. data/lib/rails_admin/config/fields/association.rb +1 -1
  60. data/lib/rails_admin/config/fields/base.rb +1 -1
  61. data/lib/rails_admin/config/fields/factories/association.rb +1 -1
  62. data/lib/rails_admin/config/fields/types/belongs_to_association.rb +1 -1
  63. data/lib/rails_admin/config/fields/types/boolean.rb +2 -2
  64. data/lib/rails_admin/config/fields/types/datetime.rb +1 -1
  65. data/lib/rails_admin/config/has_fields.rb +3 -2
  66. data/lib/rails_admin/config/lazy_model.rb +21 -0
  67. data/lib/rails_admin/extensions/history/history.rb +5 -5
  68. data/lib/rails_admin/support/csv_converter.rb +2 -6
  69. data/lib/rails_admin/version.rb +1 -1
  70. data/spec/controllers/{application_controller_spec.rb → rails_admin/application_controller_spec.rb} +0 -0
  71. data/spec/controllers/{main_controller_spec.rb → rails_admin/main_controller_spec.rb} +36 -4
  72. data/spec/dummy_app/Gemfile +2 -2
  73. data/spec/dummy_app/app/active_record/comment.rb +1 -1
  74. data/spec/dummy_app/app/active_record/team.rb +1 -1
  75. data/spec/dummy_app/app/mongoid/field_test.rb +2 -1
  76. data/spec/dummy_app/app/mongoid/team.rb +1 -1
  77. data/spec/dummy_app/db/seeds.rb +4 -4
  78. data/spec/dummy_app/db/test.sqlite3 +0 -0
  79. data/spec/dummy_app/log/test.log +156160 -0
  80. data/spec/helpers/rails_admin/application_helper_spec.rb +353 -0
  81. data/spec/helpers/{form_builder_spec.rb → rails_admin/form_builder_spec.rb} +0 -0
  82. data/spec/integration/authorization/cancan_spec.rb +13 -13
  83. data/spec/integration/basic/bulk_action/rails_admin_basic_bulk_action_spec.rb +2 -2
  84. data/spec/integration/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb +13 -2
  85. data/spec/integration/basic/create/rails_admin_basic_create_spec.rb +8 -9
  86. data/spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb +1 -1
  87. data/spec/integration/basic/destroy/rails_admin_basic_destroy_spec.rb +4 -4
  88. data/spec/integration/basic/edit/rails_admin_basic_edit_spec.rb +2 -2
  89. data/spec/integration/basic/export/rails_admin_basic_export_spec.rb +2 -2
  90. data/spec/integration/basic/list/rails_admin_basic_list_spec.rb +51 -21
  91. data/spec/integration/basic/update/rails_admin_basic_update_spec.rb +15 -15
  92. data/spec/integration/config/edit/rails_admin_config_edit_spec.rb +13 -14
  93. data/spec/integration/config/list/rails_admin_config_list_spec.rb +7 -6
  94. data/spec/integration/config/show/rails_admin_config_show_spec.rb +1 -1
  95. data/spec/integration/rails_admin_spec.rb +2 -0
  96. data/spec/{unit → rails_admin}/abstract_model_spec.rb +7 -0
  97. data/spec/{unit → rails_admin}/active_record_extension_spec.rb +0 -0
  98. data/spec/{unit → rails_admin}/adapters/active_record/abstract_object_spec.rb +0 -0
  99. data/spec/{unit → rails_admin}/adapters/active_record_spec.rb +0 -0
  100. data/spec/{unit → rails_admin}/adapters/mongoid/abstract_object_spec.rb +0 -0
  101. data/spec/{unit → rails_admin}/adapters/mongoid_spec.rb +7 -1
  102. data/spec/{unit → rails_admin}/config/actions/base_spec.rb +0 -0
  103. data/spec/{unit → rails_admin}/config/actions_spec.rb +0 -0
  104. data/spec/{unit → rails_admin}/config/fields/base_spec.rb +0 -0
  105. data/spec/{unit → rails_admin}/config/fields/date_spec.rb +0 -0
  106. data/spec/{unit → rails_admin}/config/fields/datetime_spec.rb +0 -0
  107. data/spec/{unit → rails_admin}/config/fields/file_upload_spec.rb +0 -0
  108. data/spec/{unit → rails_admin}/config/fields/time_spec.rb +0 -0
  109. data/spec/{unit → rails_admin}/config/fields/timestamp_spec.rb +0 -0
  110. data/spec/rails_admin/config/fields/types/datetime_spec.rb +18 -0
  111. data/spec/{unit → rails_admin}/config/fields_spec.rb +0 -0
  112. data/spec/rails_admin/config/has_fields_spec.rb +30 -0
  113. data/spec/rails_admin/config/lazy_model_spec.rb +29 -0
  114. data/spec/{unit → rails_admin}/config/model_spec.rb +0 -0
  115. data/spec/{unit → rails_admin}/config/sections_spec.rb +0 -0
  116. data/spec/{unit → rails_admin}/config_spec.rb +0 -0
  117. data/spec/{unit → rails_admin}/support/csv_converter_spec.rb +0 -0
  118. data/spec/spec_helper.rb +2 -0
  119. metadata +65 -60
  120. data/spec/helpers/application_helper_spec.rb +0 -328
@@ -290,8 +290,10 @@ describe "RailsAdmin Config DSL List Section" do
290
290
  end
291
291
  @fans = 2.times.map { FactoryGirl.create :fan }
292
292
  visit index_path(:model_name => "fan")
293
- expect(find('style')).to have_content("#list th.#{PK_COLUMN}_field")
294
- expect(find('style')).to have_content("#list td.#{PK_COLUMN}_field")
293
+ # NOTE: Capybara really doesn't want us to look at invisible text. This test
294
+ # could break at any moment.
295
+ expect(find('style').native.text).to include("#list th.#{PK_COLUMN}_field")
296
+ expect(find('style').native.text).to include("#list td.#{PK_COLUMN}_field")
295
297
  end
296
298
 
297
299
  it "has option to customize output formatting" do
@@ -362,10 +364,6 @@ describe "RailsAdmin Config DSL List Section" do
362
364
 
363
365
  # sort_by and sort_reverse options
364
366
  describe "default sorting" do
365
- before(:each) do
366
- RailsAdmin.config(Player){ list { field :name } }
367
- end
368
-
369
367
  let(:today){ Date.today }
370
368
  let(:players) do
371
369
  [{ :name => "Jackie Robinson", :created_at => today, :team_id => rand(99999), :number => 42 },
@@ -388,6 +386,7 @@ describe "RailsAdmin Config DSL List Section" do
388
386
  list do
389
387
  sort_by :created_at
390
388
  sort_reverse true
389
+ field :name
391
390
  end
392
391
  end
393
392
  visit index_path(:model_name => "player")
@@ -401,6 +400,7 @@ describe "RailsAdmin Config DSL List Section" do
401
400
  RailsAdmin.config Player do
402
401
  list do
403
402
  sort_by :created_at
403
+ field :name
404
404
  end
405
405
  end
406
406
  visit index_path(:model_name => "player")
@@ -414,6 +414,7 @@ describe "RailsAdmin Config DSL List Section" do
414
414
  list do
415
415
  sort_by :created_at
416
416
  sort_reverse false
417
+ field :name
417
418
  end
418
419
  end
419
420
  visit index_path(:model_name => "player")
@@ -54,7 +54,7 @@ describe "RailsAdmin Config DSL Show Section" do
54
54
  describe "css hooks" do
55
55
  it "is present" do
56
56
  do_request
57
-
57
+
58
58
  should have_selector("dt .name_field.string_type")
59
59
  end
60
60
  end
@@ -8,6 +8,7 @@ describe RailsAdmin do
8
8
  it "is disableable" do
9
9
  logout
10
10
  RailsAdmin.config do |config|
11
+ config.included_models = []
11
12
  config.authenticate_with {}
12
13
  end
13
14
  visit dashboard_path
@@ -19,6 +20,7 @@ describe RailsAdmin do
19
20
  # file as template for a new translation).
20
21
  describe "localization" do
21
22
  it "defaults to English" do
23
+ RailsAdmin.config.included_models = []
22
24
  visit dashboard_path
23
25
 
24
26
  should have_content("Site administration")
@@ -1,6 +1,13 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe RailsAdmin::AbstractModel do
4
+
5
+ describe "#to_s" do
6
+ it 'returns model\'s name' do
7
+ expect(RailsAdmin::AbstractModel.new(Cms::BasicPage).to_s).to eq Cms::BasicPage.to_s
8
+ end
9
+ end
10
+
4
11
  describe "filters" do
5
12
  before do
6
13
  @abstract_model = RailsAdmin::AbstractModel.new('FieldTest')
@@ -276,7 +276,7 @@ describe "RailsAdmin::Adapters::Mongoid", :mongoid => true do
276
276
 
277
277
  it "maps Mongoid column types to RA types" do
278
278
  expect(@abstract_model.properties.select{|p| %w(_id _type array_field big_decimal_field
279
- boolean_field bson_object_id_field date_field datetime_field default_field float_field
279
+ boolean_field bson_object_id_field date_field datetime_field time_with_zone_field default_field float_field
280
280
  hash_field integer_field name object_field range_field short_text string_field subject
281
281
  symbol_field text_field time_field title).
282
282
  include? p[:name].to_s}).to match_array [
@@ -328,6 +328,12 @@ describe "RailsAdmin::Adapters::Mongoid", :mongoid => true do
328
328
  :serial? => false,
329
329
  :type => :datetime,
330
330
  :length => nil },
331
+ { :name => :time_with_zone_field,
332
+ :pretty_name => "Time with zone field",
333
+ :nullable? => true,
334
+ :serial? => false,
335
+ :type => :datetime,
336
+ :length => nil },
331
337
  { :name => :default_field,
332
338
  :pretty_name => "Default field",
333
339
  :nullable? => true,
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe RailsAdmin::Config::Fields::Types::Datetime do
4
+ describe 'formatted_date_value' do
5
+ it 'gets object value' do
6
+ expect(RailsAdmin.config(FieldTest).fields.find{|f| f.name ==:datetime_field}.with(object: FieldTest.new(datetime_field: DateTime.parse('02/01/2012'))).formatted_date_value).to eq 'January 02, 2012'
7
+ end
8
+
9
+ it 'gets default value for new objects if value is nil' do
10
+ RailsAdmin.config(FieldTest) do |config|
11
+ field :datetime_field do
12
+ default_value DateTime.parse('01/01/2012')
13
+ end
14
+ end
15
+ expect(RailsAdmin.config(FieldTest).fields.find{|f| f.name ==:datetime_field}.with(object: FieldTest.new).formatted_date_value).to eq 'January 01, 2012'
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+ describe RailsAdmin::Config::HasFields do
4
+
5
+ it 'shows hidden fields when added through the DSL' do
6
+ expect(RailsAdmin.config(Team).fields.find{|f| f.name == :division_id}).to_not be_visible
7
+
8
+ RailsAdmin.config do |config|
9
+ config.model Team do
10
+ field :division_id
11
+ end
12
+ end
13
+
14
+ expect(RailsAdmin.config(Team).fields.find{|f| f.name == :division_id}).to be_visible
15
+ end
16
+
17
+ it 'does not set visibility for fields with bindings' do
18
+ RailsAdmin.config do |config|
19
+ config.model Team do
20
+ field :division do
21
+ visible do
22
+ bindings[:controller].current_user.email == 'test@email.com'
23
+ end
24
+ end
25
+ end
26
+ end
27
+ expect {RailsAdmin.config(Team).fields.find{|f| f.name == :division }}.to_not raise_error
28
+ expect {RailsAdmin.config(Team).fields.find{|f| f.name == :division }.visible?}.to raise_error "undefined method `[]' for nil:NilClass"
29
+ end
30
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+
3
+ describe RailsAdmin::Config::LazyModel do
4
+ describe "#store" do
5
+ let(:block) { Proc.new { register_instance_option('parameter') } } # an arbitrary instance method we can spy on
6
+ let(:other_block) { Proc.new { register_instance_option('other parameter') } }
7
+
8
+ it "doesn't evaluate the block immediately" do
9
+ RailsAdmin::Config::Model.any_instance.should_not_receive(:register_instance_option)
10
+
11
+ RailsAdmin::Config::LazyModel.new(:Team, &block)
12
+ end
13
+
14
+ it "evaluates block when reading" do
15
+ RailsAdmin::Config::Model.any_instance.should_receive(:register_instance_option).with('parameter')
16
+
17
+ lazy_model = RailsAdmin::Config::LazyModel.new(:Team, &block)
18
+ lazy_model.groups # an arbitrary instance method on RailsAdmin::Config::Model to wake up lazy_model
19
+ end
20
+
21
+ it "evaluates config block only once" do
22
+ RailsAdmin::Config::Model.any_instance.should_receive(:register_instance_option).once.with('parameter')
23
+
24
+ lazy_model = RailsAdmin::Config::LazyModel.new(:Team, &block)
25
+ lazy_model.groups
26
+ lazy_model.groups
27
+ end
28
+ end
29
+ end
@@ -55,6 +55,8 @@ RSpec.configure do |config|
55
55
 
56
56
  config.include Warden::Test::Helpers
57
57
 
58
+ config.include Capybara::DSL, type: :request
59
+
58
60
  config.before(:each) do
59
61
  DatabaseCleaner.start
60
62
  RailsAdmin::Config.reset
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rails_admin
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.4.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Erik Michaels-Ober
@@ -12,29 +12,23 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-12-02 00:00:00.000000000 Z
15
+ date: 2013-01-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  version_requirements: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ! '>'
21
- - !ruby/object:Gem::Version
22
- version: 0.2.3
23
- - - <
20
+ - - ~>
24
21
  - !ruby/object:Gem::Version
25
- version: 0.4.0
22
+ version: '0.2'
26
23
  none: false
27
24
  name: nested_form
28
25
  type: :runtime
29
26
  prerelease: false
30
27
  requirement: !ruby/object:Gem::Requirement
31
28
  requirements:
32
- - - ! '>'
33
- - !ruby/object:Gem::Version
34
- version: 0.2.3
35
- - - <
29
+ - - ~>
36
30
  - !ruby/object:Gem::Version
37
- version: 0.4.0
31
+ version: '0.2'
38
32
  none: false
39
33
  - !ruby/object:Gem::Dependency
40
34
  version_requirements: !ruby/object:Gem::Requirement
@@ -73,7 +67,7 @@ dependencies:
73
67
  requirements:
74
68
  - - ~>
75
69
  - !ruby/object:Gem::Version
76
- version: '2.0'
70
+ version: '3.0'
77
71
  none: false
78
72
  name: font-awesome-sass-rails
79
73
  type: :runtime
@@ -82,7 +76,7 @@ dependencies:
82
76
  requirements:
83
77
  - - ~>
84
78
  - !ruby/object:Gem::Version
85
- version: '2.0'
79
+ version: '3.0'
86
80
  none: false
87
81
  - !ruby/object:Gem::Dependency
88
82
  version_requirements: !ruby/object:Gem::Requirement
@@ -436,6 +430,7 @@ files:
436
430
  - lib/rails_admin/config/has_fields.rb
437
431
  - lib/rails_admin/config/has_groups.rb
438
432
  - lib/rails_admin/config/hideable.rb
433
+ - lib/rails_admin/config/lazy_model.rb
439
434
  - lib/rails_admin/config/model.rb
440
435
  - lib/rails_admin/config/proxyable/proxy.rb
441
436
  - lib/rails_admin/config/proxyable.rb
@@ -467,8 +462,8 @@ files:
467
462
  - lib/rails_admin.rb
468
463
  - lib/tasks/rails_admin.rake
469
464
  - spec/ci.sh
470
- - spec/controllers/application_controller_spec.rb
471
- - spec/controllers/main_controller_spec.rb
465
+ - spec/controllers/rails_admin/application_controller_spec.rb
466
+ - spec/controllers/rails_admin/main_controller_spec.rb
472
467
  - spec/dummy_app/app/active_record/abstract.rb
473
468
  - spec/dummy_app/app/active_record/another_field_test.rb
474
469
  - spec/dummy_app/app/active_record/ball.rb
@@ -580,8 +575,10 @@ files:
580
575
  - spec/dummy_app/db/migrate/20120720075608_create_another_field_tests.rb
581
576
  - spec/dummy_app/db/migrate/20120928075608_create_images.rb
582
577
  - spec/dummy_app/db/seeds.rb
578
+ - spec/dummy_app/db/test.sqlite3
583
579
  - spec/dummy_app/doc/README_FOR_APP
584
580
  - spec/dummy_app/Gemfile
581
+ - spec/dummy_app/log/test.log
585
582
  - spec/dummy_app/public/404.html
586
583
  - spec/dummy_app/public/422.html
587
584
  - spec/dummy_app/public/500.html
@@ -606,8 +603,8 @@ files:
606
603
  - spec/dummy_app/Rakefile
607
604
  - spec/dummy_app/script/rails
608
605
  - spec/factories.rb
609
- - spec/helpers/application_helper_spec.rb
610
- - spec/helpers/form_builder_spec.rb
606
+ - spec/helpers/rails_admin/application_helper_spec.rb
607
+ - spec/helpers/rails_admin/form_builder_spec.rb
611
608
  - spec/integration/authorization/cancan_spec.rb
612
609
  - spec/integration/basic/bulk_action/rails_admin_basic_bulk_action_spec.rb
613
610
  - spec/integration/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb
@@ -630,26 +627,29 @@ files:
630
627
  - spec/integration/relation_spec.rb
631
628
  - spec/orm/active_record.rb
632
629
  - spec/orm/mongoid.rb
630
+ - spec/rails_admin/abstract_model_spec.rb
631
+ - spec/rails_admin/active_record_extension_spec.rb
632
+ - spec/rails_admin/adapters/active_record/abstract_object_spec.rb
633
+ - spec/rails_admin/adapters/active_record_spec.rb
634
+ - spec/rails_admin/adapters/mongoid/abstract_object_spec.rb
635
+ - spec/rails_admin/adapters/mongoid_spec.rb
636
+ - spec/rails_admin/config/actions/base_spec.rb
637
+ - spec/rails_admin/config/actions_spec.rb
638
+ - spec/rails_admin/config/fields/base_spec.rb
639
+ - spec/rails_admin/config/fields/date_spec.rb
640
+ - spec/rails_admin/config/fields/datetime_spec.rb
641
+ - spec/rails_admin/config/fields/file_upload_spec.rb
642
+ - spec/rails_admin/config/fields/time_spec.rb
643
+ - spec/rails_admin/config/fields/timestamp_spec.rb
644
+ - spec/rails_admin/config/fields/types/datetime_spec.rb
645
+ - spec/rails_admin/config/fields_spec.rb
646
+ - spec/rails_admin/config/has_fields_spec.rb
647
+ - spec/rails_admin/config/lazy_model_spec.rb
648
+ - spec/rails_admin/config/model_spec.rb
649
+ - spec/rails_admin/config/sections_spec.rb
650
+ - spec/rails_admin/config_spec.rb
651
+ - spec/rails_admin/support/csv_converter_spec.rb
633
652
  - spec/spec_helper.rb
634
- - spec/unit/abstract_model_spec.rb
635
- - spec/unit/active_record_extension_spec.rb
636
- - spec/unit/adapters/active_record/abstract_object_spec.rb
637
- - spec/unit/adapters/active_record_spec.rb
638
- - spec/unit/adapters/mongoid/abstract_object_spec.rb
639
- - spec/unit/adapters/mongoid_spec.rb
640
- - spec/unit/config/actions/base_spec.rb
641
- - spec/unit/config/actions_spec.rb
642
- - spec/unit/config/fields/base_spec.rb
643
- - spec/unit/config/fields/date_spec.rb
644
- - spec/unit/config/fields/datetime_spec.rb
645
- - spec/unit/config/fields/file_upload_spec.rb
646
- - spec/unit/config/fields/time_spec.rb
647
- - spec/unit/config/fields/timestamp_spec.rb
648
- - spec/unit/config/fields_spec.rb
649
- - spec/unit/config/model_spec.rb
650
- - spec/unit/config/sections_spec.rb
651
- - spec/unit/config_spec.rb
652
- - spec/unit/support/csv_converter_spec.rb
653
653
  homepage: https://github.com/sferik/rails_admin
654
654
  licenses:
655
655
  - MIT
@@ -677,8 +677,8 @@ specification_version: 3
677
677
  summary: Admin for Rails
678
678
  test_files:
679
679
  - spec/ci.sh
680
- - spec/controllers/application_controller_spec.rb
681
- - spec/controllers/main_controller_spec.rb
680
+ - spec/controllers/rails_admin/application_controller_spec.rb
681
+ - spec/controllers/rails_admin/main_controller_spec.rb
682
682
  - spec/dummy_app/app/active_record/abstract.rb
683
683
  - spec/dummy_app/app/active_record/another_field_test.rb
684
684
  - spec/dummy_app/app/active_record/ball.rb
@@ -790,8 +790,10 @@ test_files:
790
790
  - spec/dummy_app/db/migrate/20120720075608_create_another_field_tests.rb
791
791
  - spec/dummy_app/db/migrate/20120928075608_create_images.rb
792
792
  - spec/dummy_app/db/seeds.rb
793
+ - spec/dummy_app/db/test.sqlite3
793
794
  - spec/dummy_app/doc/README_FOR_APP
794
795
  - spec/dummy_app/Gemfile
796
+ - spec/dummy_app/log/test.log
795
797
  - spec/dummy_app/public/404.html
796
798
  - spec/dummy_app/public/422.html
797
799
  - spec/dummy_app/public/500.html
@@ -816,8 +818,8 @@ test_files:
816
818
  - spec/dummy_app/Rakefile
817
819
  - spec/dummy_app/script/rails
818
820
  - spec/factories.rb
819
- - spec/helpers/application_helper_spec.rb
820
- - spec/helpers/form_builder_spec.rb
821
+ - spec/helpers/rails_admin/application_helper_spec.rb
822
+ - spec/helpers/rails_admin/form_builder_spec.rb
821
823
  - spec/integration/authorization/cancan_spec.rb
822
824
  - spec/integration/basic/bulk_action/rails_admin_basic_bulk_action_spec.rb
823
825
  - spec/integration/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb
@@ -840,24 +842,27 @@ test_files:
840
842
  - spec/integration/relation_spec.rb
841
843
  - spec/orm/active_record.rb
842
844
  - spec/orm/mongoid.rb
845
+ - spec/rails_admin/abstract_model_spec.rb
846
+ - spec/rails_admin/active_record_extension_spec.rb
847
+ - spec/rails_admin/adapters/active_record/abstract_object_spec.rb
848
+ - spec/rails_admin/adapters/active_record_spec.rb
849
+ - spec/rails_admin/adapters/mongoid/abstract_object_spec.rb
850
+ - spec/rails_admin/adapters/mongoid_spec.rb
851
+ - spec/rails_admin/config/actions/base_spec.rb
852
+ - spec/rails_admin/config/actions_spec.rb
853
+ - spec/rails_admin/config/fields/base_spec.rb
854
+ - spec/rails_admin/config/fields/date_spec.rb
855
+ - spec/rails_admin/config/fields/datetime_spec.rb
856
+ - spec/rails_admin/config/fields/file_upload_spec.rb
857
+ - spec/rails_admin/config/fields/time_spec.rb
858
+ - spec/rails_admin/config/fields/timestamp_spec.rb
859
+ - spec/rails_admin/config/fields/types/datetime_spec.rb
860
+ - spec/rails_admin/config/fields_spec.rb
861
+ - spec/rails_admin/config/has_fields_spec.rb
862
+ - spec/rails_admin/config/lazy_model_spec.rb
863
+ - spec/rails_admin/config/model_spec.rb
864
+ - spec/rails_admin/config/sections_spec.rb
865
+ - spec/rails_admin/config_spec.rb
866
+ - spec/rails_admin/support/csv_converter_spec.rb
843
867
  - spec/spec_helper.rb
844
- - spec/unit/abstract_model_spec.rb
845
- - spec/unit/active_record_extension_spec.rb
846
- - spec/unit/adapters/active_record/abstract_object_spec.rb
847
- - spec/unit/adapters/active_record_spec.rb
848
- - spec/unit/adapters/mongoid/abstract_object_spec.rb
849
- - spec/unit/adapters/mongoid_spec.rb
850
- - spec/unit/config/actions/base_spec.rb
851
- - spec/unit/config/actions_spec.rb
852
- - spec/unit/config/fields/base_spec.rb
853
- - spec/unit/config/fields/date_spec.rb
854
- - spec/unit/config/fields/datetime_spec.rb
855
- - spec/unit/config/fields/file_upload_spec.rb
856
- - spec/unit/config/fields/time_spec.rb
857
- - spec/unit/config/fields/timestamp_spec.rb
858
- - spec/unit/config/fields_spec.rb
859
- - spec/unit/config/model_spec.rb
860
- - spec/unit/config/sections_spec.rb
861
- - spec/unit/config_spec.rb
862
- - spec/unit/support/csv_converter_spec.rb
863
868
  has_rdoc: