nested_scaffold 0.2.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/.gitignore +9 -0
  4. data/.travis.yml +10 -0
  5. data/Gemfile +4 -0
  6. data/README.rdoc +4 -13
  7. data/Rakefile +5 -33
  8. data/gemfiles/Gemfile-rails.4.2.x +7 -0
  9. data/gemfiles/Gemfile-rails.4.2.x.lock +114 -0
  10. data/gemfiles/Gemfile-rails.5.0.0.beta3 +7 -0
  11. data/gemfiles/Gemfile-rails.5.0.0.beta3.lock +124 -0
  12. data/lib/generators/active_record/active_record_generator.rb +2 -2
  13. data/lib/generators/haml/templates/edit.html.haml +1 -1
  14. data/lib/generators/nested_scaffold_generator.rb +5 -3
  15. data/lib/generators/scaffold_controller/scaffold_controller_generator.rb +2 -2
  16. data/lib/generators/scaffold_controller/templates/controller.rb +32 -54
  17. data/lib/generators/test_unit/model_generator.rb +9 -0
  18. data/lib/generators/test_unit/templates/functional_test.rb +9 -10
  19. data/nested_scaffold.gemspec +26 -0
  20. metadata +84 -129
  21. data/test/dummy/README.rdoc +0 -3
  22. data/test/dummy/Rakefile +0 -7
  23. data/test/dummy/app/assets/javascripts/application.js +0 -15
  24. data/test/dummy/app/assets/javascripts/boxes.js +0 -2
  25. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  26. data/test/dummy/app/assets/stylesheets/boxes.css +0 -4
  27. data/test/dummy/app/controllers/application_controller.rb +0 -3
  28. data/test/dummy/app/controllers/boxes_controller.rb +0 -83
  29. data/test/dummy/app/helpers/application_helper.rb +0 -2
  30. data/test/dummy/app/helpers/boxes_helper.rb +0 -2
  31. data/test/dummy/app/models/box.rb +0 -2
  32. data/test/dummy/app/views/boxes/_form.html.erb +0 -25
  33. data/test/dummy/app/views/boxes/edit.html.erb +0 -6
  34. data/test/dummy/app/views/boxes/index.html.erb +0 -25
  35. data/test/dummy/app/views/boxes/new.html.erb +0 -5
  36. data/test/dummy/app/views/boxes/show.html.erb +0 -15
  37. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  38. data/test/dummy/config.ru +0 -4
  39. data/test/dummy/config/application.rb +0 -56
  40. data/test/dummy/config/boot.rb +0 -10
  41. data/test/dummy/config/database.yml +0 -25
  42. data/test/dummy/config/environment.rb +0 -5
  43. data/test/dummy/config/environments/development.rb +0 -37
  44. data/test/dummy/config/environments/production.rb +0 -67
  45. data/test/dummy/config/environments/test.rb +0 -37
  46. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  47. data/test/dummy/config/initializers/inflections.rb +0 -15
  48. data/test/dummy/config/initializers/mime_types.rb +0 -5
  49. data/test/dummy/config/initializers/secret_token.rb +0 -7
  50. data/test/dummy/config/initializers/session_store.rb +0 -8
  51. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  52. data/test/dummy/config/locales/en.yml +0 -5
  53. data/test/dummy/config/routes.rb +0 -60
  54. data/test/dummy/db/migrate/20120313224522_create_boxes.rb +0 -10
  55. data/test/dummy/db/schema.rb +0 -44
  56. data/test/dummy/db/test.sqlite3 +0 -0
  57. data/test/dummy/log/test.log +0 -18
  58. data/test/dummy/public/404.html +0 -26
  59. data/test/dummy/public/422.html +0 -26
  60. data/test/dummy/public/500.html +0 -25
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/dummy/script/rails +0 -6
  63. data/test/dummy/test/fixtures/boxes.yml +0 -9
  64. data/test/dummy/test/functional/boxes_controller_test.rb +0 -49
  65. data/test/dummy/test/unit/box_test.rb +0 -7
  66. data/test/dummy/test/unit/helpers/boxes_helper_test.rb +0 -4
  67. data/test/nested_scaffold_test.rb +0 -70
  68. data/test/test_helper.rb +0 -18
@@ -1,18 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require 'rails/generators'
6
- require "rails/test_help"
7
- class ActiveSupport::TestCase
8
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
9
- #
10
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
11
- # -- they do not yet inherit this setting
12
- fixtures :all
13
-
14
- end
15
- Rails.backtrace_cleaner.remove_silencers!
16
-
17
- # Load support files
18
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }