Skip to content

Instantly share code, notes, and snippets.

@darron
Created November 2, 2009 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darron/224563 to your computer and use it in GitHub Desktop.
Save darron/224563 to your computer and use it in GitHub Desktop.
darron-froeses-macbook-pro:Sites darron$ rails -v
Rails 2.3.4
darron-froeses-macbook-pro:Sites darron$ rails dry-scaffold-test
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create db/seeds.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
darron-froeses-macbook-pro:Sites darron$ cd dry-scaffold-test/
darron-froeses-macbook-pro:dry-scaffold-test darron$ pico Rakefile
darron-froeses-macbook-pro:dry-scaffold-test darron$ rake dry_scaffold:setup
(in /Users/darron/Sites/dry-scaffold-test)
---------------------------------------
Dependencies
---------------------------------------
Installing gems...
GEMS: haml, mislav-will_paginate, josevalim-inherited_resources, justinfrench-formtastic, and thoughtbot-shoulda
Password:
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Successfully installed haml-2.2.10
1 gem installed
Installing RDoc documentation for haml-2.2.10...
Successfully installed mislav-will_paginate-2.3.11
1 gem installed
Installing RDoc documentation for mislav-will_paginate-2.3.11...
Successfully installed josevalim-inherited_resources-0.9.1
1 gem installed
Installing RDoc documentation for josevalim-inherited_resources-0.9.1...
Successfully installed justinfrench-formtastic-0.2.4
1 gem installed
Installing RDoc documentation for justinfrench-formtastic-0.2.4...
Successfully installed thoughtbot-shoulda-2.10.2
1 gem installed
Installing RDoc documentation for thoughtbot-shoulda-2.10.2...
Initializing HAML for this project...
Haml plugin added to /Users/darron/Sites/dry-scaffold-test
---------------------------------------
Configuration
---------------------------------------
Adding configuration...
File 'config/environments/development.rb' now contains (added automatically):
config.gem 'haml'
config.gem 'mislav-will_paginate', :lib => 'will_paginate'
config.gem 'josevalim-inherited_resources', :lib => 'inherited_resources'
config.gem 'justinfrench-formtastic', :lib => 'formtastic'
config.gem 'thoughtbot-shoulda', :lib => 'shoulda'
---------------------------------------
Generated config file: '/Users/darron/Sites/dry-scaffold-test/config/scaffold.yml'
darron-froeses-macbook-pro:dry-scaffold-test darron$ mate .
darron-froeses-macbook-pro:dry-scaffold-test darron$ ./script/generate dry_scaffold Zebra name:string about:text
exists app/controllers/
create app/controllers/zebras_controller.rb
exists test/functional/
create test/functional/zebras_controller_test.rb
exists app/helpers/
create app/helpers/zebras_helper.rb
create test/helpers/
create test/helpers/zebras_helper_test.rb
create app/views/zebras
create app/views/zebras/index.html.haml
create app/views/zebras/_item.html.haml
create app/views/zebras/show.html.haml
create app/views/zebras/new.html.haml
create app/views/zebras/_form.html.haml
create app/views/zebras/edit.html.haml
identical app/views/zebras/_form.html.haml
exists app/views/zebras
route map.resources :zebras
dependency dry_model
exists app/models/
create app/models/zebra.rb
exists test/unit/
create test/unit/zebra_test.rb
create test/factories/
create test/factories/zebras.rb
create db/migrate
create db/migrate/20091102222220_create_zebras.rb
Loaded suite ./script/generate
Started
Finished in 0.00039 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
darron-froeses-macbook-pro:dry-scaffold-test darron$ rake db:migrate
(in /Users/darron/Sites/dry-scaffold-test)
== CreateZebras: migrating ===================================================
-- create_table(:zebras)
-> 0.0020s
== CreateZebras: migrated (0.0022s) ==========================================
Loaded suite /usr/local/bin/rake
Started
Finished in 0.000403 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
darron-froeses-macbook-pro:dry-scaffold-test darron$ rake db:test:clone_structure
(in /Users/darron/Sites/dry-scaffold-test)
Loaded suite /usr/local/bin/rake
Started
Finished in 0.000447 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
darron-froeses-macbook-pro:dry-scaffold-test darron$ rake test
(in /Users/darron/Sites/dry-scaffold-test)
/usr/local/bin/ruby -I"lib:test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/zebra_test.rb"
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...
Finished in 0.059538 seconds.
3 tests, 3 assertions, 0 failures, 0 errors
/usr/local/bin/ruby -I"lib:test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/zebras_controller_test.rb"
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
EEEE..EEE
Finished in 0.147947 seconds.
1) Error:
test_create(ZebrasControllerTest):
NoMethodError: undefined method `zebras' for #<ZebrasControllerTest:0x1035ed978>
/test/functional/zebras_controller_test.rb:7:in `test_create'
2) Error:
test_create_with_failure(ZebrasControllerTest):
NoMethodError: undefined method `zebras' for #<ZebrasControllerTest:0x1035ed950>
/test/functional/zebras_controller_test.rb:14:in `test_create_with_failure'
3) Error:
test_destroy(ZebrasControllerTest):
NoMethodError: undefined method `zebras' for #<ZebrasControllerTest:0x1035ed8d8>
/test/functional/zebras_controller_test.rb:35:in `test_destroy'
4) Error:
test_edit(ZebrasControllerTest):
NoMethodError: undefined method `zebras' for #<ZebrasControllerTest:0x1035ed860>
/test/functional/zebras_controller_test.rb:49:in `test_edit'
5) Error:
test_show(ZebrasControllerTest):
NoMethodError: undefined method `zebras' for #<ZebrasControllerTest:0x1035ed6f8>
/test/functional/zebras_controller_test.rb:55:in `test_show'
6) Error:
test_update(ZebrasControllerTest):
NoMethodError: undefined method `zebras' for #<ZebrasControllerTest:0x1035ed680>
/test/functional/zebras_controller_test.rb:21:in `test_update'
7) Error:
test_update_with_failure(ZebrasControllerTest):
NoMethodError: undefined method `zebras' for #<ZebrasControllerTest:0x1035ed608>
/test/functional/zebras_controller_test.rb:28:in `test_update_with_failure'
9 tests, 3 assertions, 0 failures, 7 errors
/usr/local/bin/ruby -I"lib:test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
Errors running test:functionals!
darron-froeses-macbook-pro:dry-scaffold-test darron$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment