Last active
August 29, 2015 14:16
-
-
Save sideshowbandana/66fe0d3a735c11c16ae5 to your computer and use it in GitHub Desktop.
rspec-rails scaffold generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16:24 $ bundle exec rails g scaffold foo | |
invoke active_record | |
create db/migrate/20150305003051_create_foos.rb | |
create app/models/foo.rb | |
invoke rspec | |
create spec/models/foo_spec.rb | |
invoke factory_girl | |
create spec/factories/foos.rb | |
invoke resource_route | |
route resources :foos | |
invoke scaffold_controller | |
create app/controllers/foos_controller.rb | |
invoke slim | |
create app/views/foos | |
create app/views/foos/index.html.slim | |
create app/views/foos/edit.html.slim | |
create app/views/foos/show.html.slim | |
create app/views/foos/new.html.slim | |
create app/views/foos/_form.html.slim | |
invoke rspec | |
create spec/controllers/foos_controller_spec.rb | |
(erb):82:in `block in template': undefined local variable or method `example_invalid_attributes' for #<Rspec::Generators::ScaffoldGenerator:0x007fb03e860f38> (NameError) | |
from RVM/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:305:in `call' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:305:in `block in capture' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:310:in `with_output_buffer' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:305:in `capture' | |
from RVM/gems/railties-4.2.0/lib/rails/generators/named_base.rb:43:in `module_namespacing' | |
from (erb):3:in `template' | |
from ruby-2.0.0-p247/erb.rb:849:in `eval' | |
from ruby-2.0.0-p247/erb.rb:849:in `result' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:116:in `block in template' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `call' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `render' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `block (2 levels) in invoke!' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `open' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `block in invoke!' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `call' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in `invoke!' | |
from RVM/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/create_file.rb:25:in `create_file' | |
from RVM/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:115:in `template' | |
from RVM/gems/railties-4.2.0/lib/rails/generators/named_base.rb:26:in `block in template' | |
from RVM/gems/railties-4.2.0/lib/rails/generators/named_base.rb:60:in `inside_template' | |
from RVM/gems/railties-4.2.0/lib/rails/generators/named_base.rb:25:in `template' | |
from RVM/gems/rspec-rails-3.2.1/lib/generators/rspec/scaffold/scaffold_generator.rb:29:in `generate_controller_spec' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment