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.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.gitignore +9 -0
- data/.travis.yml +10 -0
- data/Gemfile +4 -0
- data/README.rdoc +4 -13
- data/Rakefile +5 -33
- data/gemfiles/Gemfile-rails.4.2.x +7 -0
- data/gemfiles/Gemfile-rails.4.2.x.lock +114 -0
- data/gemfiles/Gemfile-rails.5.0.0.beta3 +7 -0
- data/gemfiles/Gemfile-rails.5.0.0.beta3.lock +124 -0
- data/lib/generators/active_record/active_record_generator.rb +2 -2
- data/lib/generators/haml/templates/edit.html.haml +1 -1
- data/lib/generators/nested_scaffold_generator.rb +5 -3
- data/lib/generators/scaffold_controller/scaffold_controller_generator.rb +2 -2
- data/lib/generators/scaffold_controller/templates/controller.rb +32 -54
- data/lib/generators/test_unit/model_generator.rb +9 -0
- data/lib/generators/test_unit/templates/functional_test.rb +9 -10
- data/nested_scaffold.gemspec +26 -0
- metadata +84 -129
- data/test/dummy/README.rdoc +0 -3
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/javascripts/boxes.js +0 -2
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/assets/stylesheets/boxes.css +0 -4
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/controllers/boxes_controller.rb +0 -83
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/helpers/boxes_helper.rb +0 -2
- data/test/dummy/app/models/box.rb +0 -2
- data/test/dummy/app/views/boxes/_form.html.erb +0 -25
- data/test/dummy/app/views/boxes/edit.html.erb +0 -6
- data/test/dummy/app/views/boxes/index.html.erb +0 -25
- data/test/dummy/app/views/boxes/new.html.erb +0 -5
- data/test/dummy/app/views/boxes/show.html.erb +0 -15
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -56
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -60
- data/test/dummy/db/migrate/20120313224522_create_boxes.rb +0 -10
- data/test/dummy/db/schema.rb +0 -44
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -18
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/dummy/test/fixtures/boxes.yml +0 -9
- data/test/dummy/test/functional/boxes_controller_test.rb +0 -49
- data/test/dummy/test/unit/box_test.rb +0 -7
- data/test/dummy/test/unit/helpers/boxes_helper_test.rb +0 -4
- data/test/nested_scaffold_test.rb +0 -70
- data/test/test_helper.rb +0 -18
data/test/test_helper.rb
DELETED
@@ -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 }
|