adminpanel 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -7
  3. data/Rakefile +8 -7
  4. data/adminpanel.gemspec +6 -6
  5. data/app/controllers/adminpanel/application_controller.rb +1 -0
  6. data/app/controllers/concerns/adminpanel/facebook_actions.rb +1 -1
  7. data/app/controllers/concerns/adminpanel/sitemap_actions.rb +13 -0
  8. data/app/models/concerns/adminpanel/base.rb +1 -2
  9. data/app/models/concerns/adminpanel/facebook.rb +1 -1
  10. data/app/models/concerns/adminpanel/sitemap.rb +34 -0
  11. data/lib/adminpanel/version.rb +1 -1
  12. data/lib/generators/adminpanel/gallery/gallery_generator.rb +26 -28
  13. data/lib/generators/adminpanel/initialize/initialize_generator.rb +50 -52
  14. data/lib/generators/adminpanel/resource/resource_generator.rb +190 -193
  15. data/lib/tasks/adminpanel/adminpanel.rake +4 -4
  16. data/test/dummy/app/controllers/adminpanel/departments_controller.rb +13 -0
  17. data/test/dummy/app/models/adminpanel/department.rb +47 -0
  18. data/test/dummy/app/models/adminpanel/item.rb +38 -0
  19. data/test/dummy/app/models/adminpanel/mug.rb +1 -1
  20. data/test/dummy/app/models/adminpanel/salesman.rb +1 -0
  21. data/test/dummy/config/initializers/adminpanel_setup.rb +1 -0
  22. data/test/dummy/db/schema.rb +12 -0
  23. data/test/dummy/test/fixtures/adminpanel/mugs.yml +12 -0
  24. data/test/dummy/test/fixtures/adminpanel/products.yml +6 -0
  25. data/test/dummy/test/fixtures/adminpanel/salesmen.yml +12 -0
  26. data/test/features/shared/action_exclution_test.rb +20 -0
  27. data/test/features/shared/belongs_to_category_modal_test.rb +35 -0
  28. data/test/features/shared/belongs_to_non_category_modal_test.rb +41 -0
  29. data/test/features/shared/edit_test.rb +32 -0
  30. data/test/features/shared/has_many_through_category_modal_test.rb +35 -0
  31. data/test/features/shared/has_many_through_non_category_modal_test.rb +37 -0
  32. data/test/features/shared/index_test.rb +20 -0
  33. data/test/features/shared/new_test.rb +3 -3
  34. data/test/features/shared/show_test.rb +20 -0
  35. data/test/generators/gallery_generator_test.rb +39 -0
  36. data/test/generators/initialize_generator_test.rb +45 -0
  37. data/test/generators/resource_generator_test.rb +138 -0
  38. data/test/tasks/adminpanel_rake_test.rb +32 -0
  39. data/test/test_helper.rb +16 -23
  40. metadata +81 -70
  41. data/app/uploaders/adminpanel/image_uploader.rb +0 -58
  42. data/spec/features/galleries_pages_spec.rb +0 -110
  43. data/spec/features/section_pages_spec.rb +0 -36
  44. data/spec/features/shared_pages/edit_spec.rb +0 -48
  45. data/spec/features/shared_pages/index_spec.rb +0 -50
  46. data/spec/features/shared_pages/new_spec.rb +0 -128
  47. data/spec/features/shared_pages/show_spec.rb +0 -30
  48. data/spec/generators/gallery_generator_spec.rb +0 -48
  49. data/spec/generators/initialize_generator_spec.rb +0 -68
  50. data/spec/generators/resource_generator_spec.rb +0 -169
  51. data/spec/spec_helper.rb +0 -42
  52. data/spec/support/capybara_matchers.rb +0 -17
  53. data/spec/support/factories.rb +0 -52
  54. data/spec/support/helper_methods.rb +0 -30
  55. data/spec/support/shared_connection.rb +0 -10
  56. data/spec/tasks/adminpanel_rake_spec.rb +0 -59
@@ -2,8 +2,8 @@ require 'test_helper'
2
2
 
3
3
  class NewTest < ViewCase
4
4
 
5
- setup :visit_new_product
6
- # teardown :teardown
5
+ setup :visit_adminpanel_new_product_path
6
+ teardown :teardown
7
7
 
8
8
  def test_shared_new_page_messages
9
9
  assert_button("#{I18n.t('action.add')} #{Adminpanel::Product.display_name}")
@@ -31,7 +31,7 @@ class NewTest < ViewCase
31
31
  end
32
32
 
33
33
  protected
34
- def visit_new_product
34
+ def visit_adminpanel_new_product_path
35
35
  visit adminpanel.signin_path
36
36
  login
37
37
  visit adminpanel.new_product_path
@@ -0,0 +1,20 @@
1
+ require 'test_helper'
2
+
3
+ class ShowTest < ViewCase
4
+ fixtures :all
5
+
6
+ setup :sign_in
7
+ def test_resource_contenets_and_links
8
+ assert_content(adminpanel_products(:first).name)
9
+ assert_content(adminpanel_products(:first).price)
10
+ assert_content(adminpanel_products(:first).description)
11
+ assert_selector 'i.fa.fa-pencil'
12
+ end
13
+
14
+ protected
15
+ def sign_in
16
+ visit adminpanel.signin_path
17
+ login
18
+ visit adminpanel.product_path( adminpanel_products(:first) )
19
+ end
20
+ end
@@ -0,0 +1,39 @@
1
+ require 'test_helper'
2
+ require 'generators/adminpanel/gallery/gallery_generator'
3
+
4
+ class GalleryGeneratorTest < Rails::Generators::TestCase
5
+ tests Adminpanel::GalleryGenerator
6
+ destination Rails.root.join('tmp/generators')
7
+ setup :prepare_destination
8
+
9
+ def test_the_generation_of_the_productfiles_migration
10
+ run_generator ['Product']
11
+ assert_migration(
12
+ 'db/migrate/create_adminpanel_productfiles.rb',
13
+ /t.integer :product_id/,
14
+ /create_table :adminpanel_productfiles/
15
+ )
16
+ end
17
+
18
+ def test_the_generation_of_the_productfile
19
+ run_generator ['Product']
20
+ assert_file(
21
+ 'app/models/adminpanel/productfile.rb',
22
+ /mount_uploader :file, ProductfileUploader/
23
+ )
24
+ end
25
+
26
+ def test_the_generation_of_the_productfile_uploader
27
+ run_generator ['Product']
28
+ assert_file(
29
+ 'app/uploaders/adminpanel/productfile_uploader.rb'
30
+ )
31
+ end
32
+
33
+ def test_runs_without_errors
34
+ assert_nothing_raised do
35
+ run_generator
36
+ end
37
+ end
38
+
39
+ end
@@ -0,0 +1,45 @@
1
+ require 'test_helper'
2
+ require 'generators/adminpanel/initialize/initialize_generator'
3
+
4
+ class InitializeGeneratorTest < Rails::Generators::TestCase
5
+ tests Adminpanel::InitializeGenerator
6
+ destination Rails.root.join('tmp/generators')
7
+ setup :prepare_destination
8
+
9
+ def test_the_generation_of_initial_migration
10
+ run_generator
11
+ assert_migration 'db/migrate/create_adminpanel_tables'
12
+ end
13
+
14
+ def test_the_generation_of_the_adminpanel_setup_file
15
+ run_generator
16
+ assert_file 'config/initializers/adminpanel_setup.rb'
17
+ end
18
+
19
+ def test_the_generation_of_the_categories_files
20
+ run_generator
21
+ assert_migration 'db/migrate/create_adminpanel_categories_table.rb'
22
+ assert_file 'app/models/adminpanel/category.rb'
23
+ end
24
+
25
+ def test_the_generation_of_the_section_uploader
26
+ run_generator
27
+ assert_file 'app/uploaders/adminpanel/section_uploader.rb'
28
+ end
29
+
30
+ def test_the_not_generation_of_files
31
+ run_generator %w( -c true -u true -m true -p true )
32
+ assert_no_file 'config/initializers/adminpanel_setup.rb'
33
+ assert_no_file 'app/models/adminpanel/category.rb'
34
+ assert_no_migration 'db/migrate/create_adminpanel_categories_table.rb'
35
+ assert_no_migration 'db/migrate/create_adminpanel_tables'
36
+ assert_no_file 'app/uploaders/adminpanel/section_uploader.rb'
37
+ end
38
+
39
+ def test_runs_without_errors
40
+ assert_nothing_raised do
41
+ run_generator
42
+ end
43
+ end
44
+
45
+ end
@@ -0,0 +1,138 @@
1
+ require 'test_helper'
2
+ require 'generators/adminpanel/resource/resource_generator'
3
+
4
+ class ResourceGeneratorTest < Rails::Generators::TestCase
5
+ tests Adminpanel::ResourceGenerator
6
+ destination Rails.root.join('tmp/generators')
7
+ setup :prepare_destination
8
+
9
+ def test_not_generation_of_gallery
10
+ run_generator %w(
11
+ post
12
+ name
13
+ description:wysiwyg
14
+ number:float
15
+ --no-gallery
16
+ )
17
+ assert_no_file 'app/models/adminpanel/postfile.rb'
18
+ assert_no_migration('db/migrate/create_adminpanel_productfiles.rb')
19
+ end
20
+
21
+ # def test_initializer_update
22
+ # run_generator %w(
23
+ # post
24
+ # name
25
+ # description:wysiwyg
26
+ # number:float
27
+ # -g=false
28
+ # )
29
+ # assert_file(
30
+ # 'config/adminpanel_setup.rb',
31
+ # /:posts,/
32
+ # )
33
+ # end
34
+
35
+ def test_correct_migration_attributes
36
+ generator = Adminpanel::ResourceGenerator.new %w(
37
+ post
38
+ name
39
+ description:wysiwyg
40
+ number:float
41
+ flag:boolean
42
+ quantity:integer
43
+ date:datepicker
44
+ )
45
+
46
+ # puts generator.generate_migration
47
+
48
+ # assert_migration(
49
+ # 'db/migrate/create_adminpanel_posts.rb',
50
+ # /t.string :name/,
51
+ # /t.float :number/,
52
+ # /t.boolean :flag/,
53
+ # /t.integer :quantity/,
54
+ # /t.string :date/,
55
+ # /t.text :description/
56
+ # )
57
+ end
58
+
59
+ def test_controller_generation
60
+ run_generator %w(
61
+ post
62
+ name
63
+ description:wysiwyg
64
+ number:float
65
+ flag:boolean
66
+ quantity:integer
67
+ date:datepicker
68
+ )
69
+ assert_file(
70
+ 'app/controllers/adminpanel/posts_controller.rb',
71
+ /params.require\(:post\).permit/,
72
+ /:name/,
73
+ /:description/,
74
+ /:number/,
75
+ /:flag/,
76
+ /:quantity/,
77
+ /:date/,
78
+ /{ postfiles_attributes: \[:id, :file, :_destroy\] }/
79
+ )
80
+ end
81
+
82
+ def test_model_generation
83
+ run_generator %w(
84
+ post
85
+ name
86
+ description:wysiwyg
87
+ number:float
88
+ flag:boolean
89
+ quantity:integer
90
+ date:datepicker
91
+ categories:has_many
92
+ )
93
+ assert_file(
94
+ 'app/models/adminpanel/post.rb',
95
+ /include Adminpanel::Base/,
96
+ /mount_images :postfiles/,
97
+ # form_fields generated correctly
98
+ /'description' => {/,
99
+ /'type' => 'wysiwyg_field',/,
100
+ /'name' => {/,
101
+ /'type' => 'text_field',/,
102
+ /'number' => {/,
103
+ /'type' => 'text_field',/,
104
+ /'flag' => {/,
105
+ /'type' => 'boolean',/,
106
+ /'quantity' => {/,
107
+ /'type' => 'number_field',/,
108
+ /'date' => {/,
109
+ /'type' => 'datepicker',/,
110
+ /'postfiles' => {/,
111
+ /'type' => 'adminpanel_file_field',/,
112
+ /'category_ids' => {/,
113
+ /'type' => 'has_many'/,
114
+ /'model' => 'Adminpanel::/
115
+ )
116
+ end
117
+
118
+ def test_creating_a_categorization_resource
119
+ run_generator %w(
120
+ categorization
121
+ category:belongs_to
122
+ product:belongs_to
123
+ )
124
+ assert_no_file 'app/controllers/adminpanel/categorizations_controller.rb'
125
+ assert_no_file 'app/controllers/adminpanel/categorizationfiles.rb'
126
+ assert_file(
127
+ 'app/models/adminpanel/categorization.rb',
128
+ /belongs_to :product/,
129
+ /belongs_to :category/
130
+ )
131
+ end
132
+
133
+ def test_that_runs_without_errors
134
+ assert_nothing_raised do
135
+ run_generator ["doll", ['name']]
136
+ end
137
+ end
138
+ end
@@ -0,0 +1,32 @@
1
+ require 'test_helper'
2
+
3
+ class AdminpanelRakeTest < ActiveSupport::TestCase
4
+ include Rake
5
+ Rake.application.rake_require 'tasks/adminpanel/adminpanel'
6
+ Rake::Task.define_task(:environment)
7
+
8
+ def test_populate_task
9
+ products_count = Adminpanel::Product.count
10
+ Rake.application.invoke_task "adminpanel:populate[10, product, name:name description:lorem price:number]"
11
+ assert_equal products_count + 10, Adminpanel::Product.count
12
+ end
13
+
14
+ def test_section_task
15
+ Rake.application.invoke_task "adminpanel:section[Mission Mars, about us]"
16
+ last_section = Adminpanel::Section.last
17
+ assert_equal 'Mission Mars', last_section.name
18
+ assert_equal 'About us', last_section.page
19
+ assert_equal 'mission_mars', last_section.key
20
+ assert_equal false, last_section.has_description
21
+ assert_equal false, last_section.has_image
22
+ end
23
+
24
+ def test_user_task
25
+ Rake.application.invoke_task 'adminpanel:user'
26
+ generated_user = Adminpanel::User.last
27
+ assert_equal 'webmaster@codn.com', generated_user.email
28
+ assert_equal 'Webmaster', generated_user.name
29
+ assert_equal 'Admin', generated_user.group.name
30
+ end
31
+
32
+ end
data/test/test_helper.rb CHANGED
@@ -5,19 +5,15 @@ require 'rails/test_help'
5
5
  require 'minitest/autorun'
6
6
  require 'minitest/emoji' #emoji output
7
7
  require 'capybara/rails'
8
- require 'minitest/unit'
9
- require 'mocha/mini_test'
8
+ # require 'minitest/unit' #mocha
9
+ # require 'mocha/mini_test' #mocha
10
10
  require 'capybara/poltergeist'
11
- # require 'minitest/debugger' if ENV['DEBUG'] # for deubgging
12
11
 
13
12
 
14
13
  Capybara.current_driver = :poltergeist
15
14
 
16
15
  load Rails.root.join('db', 'schema.rb')
17
16
 
18
-
19
-
20
-
21
17
  class ActiveRecord::Base
22
18
  mattr_accessor :shared_connection
23
19
  @@shared_connection = nil
@@ -26,19 +22,18 @@ class ActiveRecord::Base
26
22
  @@shared_connection || retrieve_connection
27
23
  end
28
24
  end
29
-
30
25
  # Forces all threads to share the same connection. This works on
31
26
  # Capybara because it starts the web server in a thread.
32
27
  ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
33
28
 
34
29
 
35
30
  class ActiveSupport::TestCase
36
-
37
31
  #fixtures live inside the dummy app
38
32
  fixtures :all
39
33
 
40
34
  # Add more helper methods to be used by all tests here...
41
35
  end
36
+
42
37
  class ViewCase < ActionView::TestCase
43
38
  include Capybara::DSL
44
39
  include Capybara::Assertions
@@ -46,26 +41,24 @@ class ViewCase < ActionView::TestCase
46
41
 
47
42
  def teardown
48
43
  Capybara.reset_session!
44
+ Capybara.current_driver = :poltergeist
49
45
  end
50
46
 
51
- protected
47
+ private
52
48
  def login(password = 'foobar')
53
49
  fill_in 'inputEmail', with: adminpanel_users(:valid).email
54
50
  fill_in 'inputPassword', with: password #pass is foobar
55
51
  click_button I18n.t('authentication.new-session')
56
52
  end
57
- end
58
53
 
59
- # class SharedTestCase < ViewCase
60
- # # include Capybara::DSL
61
- # # include Capybara::Assertions
62
- # # include Rails.application.routes.url_helpers
63
- # def before_setup
64
- # sign_in
65
- # end
66
- # protected
67
- # def sign_in
68
- # visit adminpanel.signin_path
69
- # login
70
- # end
71
- # end
54
+ def submit_modal(button)
55
+ click_button button #the modal is the button
56
+ sleep 0.5
57
+ end
58
+
59
+ def trigger_modal(link)
60
+ click_link link
61
+ sleep 0.5
62
+ end
63
+
64
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adminpanel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Ramon Camacho
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-04 00:00:00.000000000 Z
12
+ date: 2014-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -286,27 +286,7 @@ dependencies:
286
286
  - !ruby/object:Gem::Version
287
287
  version: 2.0.0
288
288
  - !ruby/object:Gem::Dependency
289
- name: sqlite3
290
- requirement: !ruby/object:Gem::Requirement
291
- requirements:
292
- - - '>='
293
- - !ruby/object:Gem::Version
294
- version: 1.3.9
295
- - - <=
296
- - !ruby/object:Gem::Version
297
- version: 2.0.0
298
- type: :development
299
- prerelease: false
300
- version_requirements: !ruby/object:Gem::Requirement
301
- requirements:
302
- - - '>='
303
- - !ruby/object:Gem::Version
304
- version: 1.3.9
305
- - - <=
306
- - !ruby/object:Gem::Version
307
- version: 2.0.0
308
- - !ruby/object:Gem::Dependency
309
- name: minitest
289
+ name: coffee-script
310
290
  requirement: !ruby/object:Gem::Requirement
311
291
  requirements:
312
292
  - - '>='
@@ -320,75 +300,99 @@ dependencies:
320
300
  - !ruby/object:Gem::Version
321
301
  version: '0'
322
302
  - !ruby/object:Gem::Dependency
323
- name: minitest-emoji
303
+ name: sqlite3
324
304
  requirement: !ruby/object:Gem::Requirement
325
305
  requirements:
326
306
  - - '>='
327
307
  - !ruby/object:Gem::Version
328
- version: '0'
308
+ version: 1.3.9
309
+ - - <=
310
+ - !ruby/object:Gem::Version
311
+ version: 2.0.0
329
312
  type: :development
330
313
  prerelease: false
331
314
  version_requirements: !ruby/object:Gem::Requirement
332
315
  requirements:
333
316
  - - '>='
334
317
  - !ruby/object:Gem::Version
335
- version: '0'
318
+ version: 1.3.9
319
+ - - <=
320
+ - !ruby/object:Gem::Version
321
+ version: 2.0.0
336
322
  - !ruby/object:Gem::Dependency
337
- name: minitest-capybara
323
+ name: minitest
338
324
  requirement: !ruby/object:Gem::Requirement
339
325
  requirements:
340
326
  - - '>='
341
327
  - !ruby/object:Gem::Version
342
- version: '0'
328
+ version: 5.3.4
329
+ - - <=
330
+ - !ruby/object:Gem::Version
331
+ version: 6.0.0
343
332
  type: :development
344
333
  prerelease: false
345
334
  version_requirements: !ruby/object:Gem::Requirement
346
335
  requirements:
347
336
  - - '>='
348
337
  - !ruby/object:Gem::Version
349
- version: '0'
338
+ version: 5.3.4
339
+ - - <=
340
+ - !ruby/object:Gem::Version
341
+ version: 6.0.0
350
342
  - !ruby/object:Gem::Dependency
351
- name: mocha
343
+ name: minitest-emoji
352
344
  requirement: !ruby/object:Gem::Requirement
353
345
  requirements:
354
- - - '>='
346
+ - - '='
355
347
  - !ruby/object:Gem::Version
356
- version: '0'
348
+ version: 2.0.0
357
349
  type: :development
358
350
  prerelease: false
359
351
  version_requirements: !ruby/object:Gem::Requirement
360
352
  requirements:
361
- - - '>='
353
+ - - '='
362
354
  - !ruby/object:Gem::Version
363
- version: '0'
355
+ version: 2.0.0
364
356
  - !ruby/object:Gem::Dependency
365
- name: minitest-metadata
357
+ name: minitest-capybara
366
358
  requirement: !ruby/object:Gem::Requirement
367
359
  requirements:
368
360
  - - '>='
369
361
  - !ruby/object:Gem::Version
370
- version: '0'
362
+ version: 0.6.1
363
+ - - <=
364
+ - !ruby/object:Gem::Version
365
+ version: 1.0.0
371
366
  type: :development
372
367
  prerelease: false
373
368
  version_requirements: !ruby/object:Gem::Requirement
374
369
  requirements:
375
370
  - - '>='
376
371
  - !ruby/object:Gem::Version
377
- version: '0'
372
+ version: 0.6.1
373
+ - - <=
374
+ - !ruby/object:Gem::Version
375
+ version: 1.0.0
378
376
  - !ruby/object:Gem::Dependency
379
377
  name: poltergeist
380
378
  requirement: !ruby/object:Gem::Requirement
381
379
  requirements:
382
380
  - - '>='
383
381
  - !ruby/object:Gem::Version
384
- version: '0'
382
+ version: 1.5.1
383
+ - - <=
384
+ - !ruby/object:Gem::Version
385
+ version: 2.0.0
385
386
  type: :development
386
387
  prerelease: false
387
388
  version_requirements: !ruby/object:Gem::Requirement
388
389
  requirements:
389
390
  - - '>='
390
391
  - !ruby/object:Gem::Version
391
- version: '0'
392
+ version: 1.5.1
393
+ - - <=
394
+ - !ruby/object:Gem::Version
395
+ version: 2.0.0
392
396
  description: Gem that makes the administrative panel for a site a breeze!
393
397
  email:
394
398
  - joserracamacho@gmail.com
@@ -484,6 +488,7 @@ files:
484
488
  - app/controllers/concerns/adminpanel/facebook_actions.rb
485
489
  - app/controllers/concerns/adminpanel/galleryzable_actions.rb
486
490
  - app/controllers/concerns/adminpanel/rest_actions.rb
491
+ - app/controllers/concerns/adminpanel/sitemap_actions.rb
487
492
  - app/helpers/adminpanel/adminpanel_form_builder.rb
488
493
  - app/helpers/adminpanel/application_helper.rb
489
494
  - app/helpers/adminpanel/breadcrumbs_helper.rb
@@ -500,9 +505,9 @@ files:
500
505
  - app/models/concerns/adminpanel/base.rb
501
506
  - app/models/concerns/adminpanel/facebook.rb
502
507
  - app/models/concerns/adminpanel/galleryzation.rb
508
+ - app/models/concerns/adminpanel/sitemap.rb
503
509
  - app/models/contact.rb
504
510
  - app/uploaders/adminpanel/gallery_uploader.rb
505
- - app/uploaders/adminpanel/image_uploader.rb
506
511
  - app/views/adminpanel/.DS_Store
507
512
  - app/views/adminpanel/analytics/index.html.erb
508
513
  - app/views/adminpanel/categories/_categories_table.html.erb
@@ -570,21 +575,6 @@ files:
570
575
  - lib/generators/adminpanel/resource/templates/controller.rb
571
576
  - lib/generators/adminpanel/resource/templates/resource.rb
572
577
  - lib/tasks/adminpanel/adminpanel.rake
573
- - spec/features/galleries_pages_spec.rb
574
- - spec/features/section_pages_spec.rb
575
- - spec/features/shared_pages/edit_spec.rb
576
- - spec/features/shared_pages/index_spec.rb
577
- - spec/features/shared_pages/new_spec.rb
578
- - spec/features/shared_pages/show_spec.rb
579
- - spec/generators/gallery_generator_spec.rb
580
- - spec/generators/initialize_generator_spec.rb
581
- - spec/generators/resource_generator_spec.rb
582
- - spec/spec_helper.rb
583
- - spec/support/capybara_matchers.rb
584
- - spec/support/factories.rb
585
- - spec/support/helper_methods.rb
586
- - spec/support/shared_connection.rb
587
- - spec/tasks/adminpanel_rake_spec.rb
588
578
  - test/dummy/.gitignore
589
579
  - test/dummy/README.rdoc
590
580
  - test/dummy/Rakefile
@@ -593,6 +583,7 @@ files:
593
583
  - test/dummy/app/assets/javascripts/application.js
594
584
  - test/dummy/app/assets/stylesheets/application.css
595
585
  - test/dummy/app/controllers/adminpanel/.gitkeep
586
+ - test/dummy/app/controllers/adminpanel/departments_controller.rb
596
587
  - test/dummy/app/controllers/adminpanel/mugs_controller.rb
597
588
  - test/dummy/app/controllers/adminpanel/products_controller.rb
598
589
  - test/dummy/app/controllers/adminpanel/salesmen_controller.rb
@@ -603,6 +594,8 @@ files:
603
594
  - test/dummy/app/models/ability.rb
604
595
  - test/dummy/app/models/adminpanel/categorization.rb
605
596
  - test/dummy/app/models/adminpanel/category.rb
597
+ - test/dummy/app/models/adminpanel/department.rb
598
+ - test/dummy/app/models/adminpanel/item.rb
606
599
  - test/dummy/app/models/adminpanel/mug.rb
607
600
  - test/dummy/app/models/adminpanel/photo.rb
608
601
  - test/dummy/app/models/adminpanel/product.rb
@@ -636,12 +629,27 @@ files:
636
629
  - test/dummy/script/rails
637
630
  - test/dummy/test/fixtures/adminpanel/galleries.yml
638
631
  - test/dummy/test/fixtures/adminpanel/groups.yml
632
+ - test/dummy/test/fixtures/adminpanel/mugs.yml
633
+ - test/dummy/test/fixtures/adminpanel/products.yml
634
+ - test/dummy/test/fixtures/adminpanel/salesmen.yml
639
635
  - test/dummy/test/fixtures/adminpanel/users.yml
640
636
  - test/features/session/login_test.rb
637
+ - test/features/shared/action_exclution_test.rb
638
+ - test/features/shared/belongs_to_category_modal_test.rb
639
+ - test/features/shared/belongs_to_non_category_modal_test.rb
640
+ - test/features/shared/edit_test.rb
641
+ - test/features/shared/has_many_through_category_modal_test.rb
642
+ - test/features/shared/has_many_through_non_category_modal_test.rb
643
+ - test/features/shared/index_test.rb
641
644
  - test/features/shared/new_test.rb
645
+ - test/features/shared/show_test.rb
646
+ - test/generators/gallery_generator_test.rb
647
+ - test/generators/initialize_generator_test.rb
648
+ - test/generators/resource_generator_test.rb
642
649
  - test/models/adminpanel/gallery_test.rb
643
650
  - test/models/adminpanel/section_test.rb
644
651
  - test/models/adminpanel/user_test.rb
652
+ - test/tasks/adminpanel_rake_test.rb
645
653
  - test/test_helper.rb
646
654
  - test/unit/gallery_unit_test.rb
647
655
  homepage: https://github.com/joseramonc/adminpanel
@@ -670,21 +678,6 @@ signing_key:
670
678
  specification_version: 4
671
679
  summary: Developed with <3 by CoDN
672
680
  test_files:
673
- - spec/features/galleries_pages_spec.rb
674
- - spec/features/section_pages_spec.rb
675
- - spec/features/shared_pages/edit_spec.rb
676
- - spec/features/shared_pages/index_spec.rb
677
- - spec/features/shared_pages/new_spec.rb
678
- - spec/features/shared_pages/show_spec.rb
679
- - spec/generators/gallery_generator_spec.rb
680
- - spec/generators/initialize_generator_spec.rb
681
- - spec/generators/resource_generator_spec.rb
682
- - spec/spec_helper.rb
683
- - spec/support/capybara_matchers.rb
684
- - spec/support/factories.rb
685
- - spec/support/helper_methods.rb
686
- - spec/support/shared_connection.rb
687
- - spec/tasks/adminpanel_rake_spec.rb
688
681
  - test/dummy/.gitignore
689
682
  - test/dummy/README.rdoc
690
683
  - test/dummy/Rakefile
@@ -693,6 +686,7 @@ test_files:
693
686
  - test/dummy/app/assets/javascripts/application.js
694
687
  - test/dummy/app/assets/stylesheets/application.css
695
688
  - test/dummy/app/controllers/adminpanel/.gitkeep
689
+ - test/dummy/app/controllers/adminpanel/departments_controller.rb
696
690
  - test/dummy/app/controllers/adminpanel/mugs_controller.rb
697
691
  - test/dummy/app/controllers/adminpanel/products_controller.rb
698
692
  - test/dummy/app/controllers/adminpanel/salesmen_controller.rb
@@ -703,6 +697,8 @@ test_files:
703
697
  - test/dummy/app/models/ability.rb
704
698
  - test/dummy/app/models/adminpanel/categorization.rb
705
699
  - test/dummy/app/models/adminpanel/category.rb
700
+ - test/dummy/app/models/adminpanel/department.rb
701
+ - test/dummy/app/models/adminpanel/item.rb
706
702
  - test/dummy/app/models/adminpanel/mug.rb
707
703
  - test/dummy/app/models/adminpanel/photo.rb
708
704
  - test/dummy/app/models/adminpanel/product.rb
@@ -736,11 +732,26 @@ test_files:
736
732
  - test/dummy/script/rails
737
733
  - test/dummy/test/fixtures/adminpanel/galleries.yml
738
734
  - test/dummy/test/fixtures/adminpanel/groups.yml
735
+ - test/dummy/test/fixtures/adminpanel/mugs.yml
736
+ - test/dummy/test/fixtures/adminpanel/products.yml
737
+ - test/dummy/test/fixtures/adminpanel/salesmen.yml
739
738
  - test/dummy/test/fixtures/adminpanel/users.yml
740
739
  - test/features/session/login_test.rb
740
+ - test/features/shared/action_exclution_test.rb
741
+ - test/features/shared/belongs_to_category_modal_test.rb
742
+ - test/features/shared/belongs_to_non_category_modal_test.rb
743
+ - test/features/shared/edit_test.rb
744
+ - test/features/shared/has_many_through_category_modal_test.rb
745
+ - test/features/shared/has_many_through_non_category_modal_test.rb
746
+ - test/features/shared/index_test.rb
741
747
  - test/features/shared/new_test.rb
748
+ - test/features/shared/show_test.rb
749
+ - test/generators/gallery_generator_test.rb
750
+ - test/generators/initialize_generator_test.rb
751
+ - test/generators/resource_generator_test.rb
742
752
  - test/models/adminpanel/gallery_test.rb
743
753
  - test/models/adminpanel/section_test.rb
744
754
  - test/models/adminpanel/user_test.rb
755
+ - test/tasks/adminpanel_rake_test.rb
745
756
  - test/test_helper.rb
746
757
  - test/unit/gallery_unit_test.rb