Skip to content

Instantly share code, notes, and snippets.

@tomtt
Created May 5, 2009 18:01
Show Gist options
  • Select an option

  • Save tomtt/107088 to your computer and use it in GitHub Desktop.

Select an option

Save tomtt/107088 to your computer and use it in GitHub Desktop.
>: rake spec:generate
(in /Users/tomtt/created/projects/test/resources_controller_spec/vendor/plugins/resources_controller)
cd /Users/tomtt/created/projects/test/resources_controller_spec
** Generating rspec_scaffold for resource: author
** Migrating up
** Replacing app/controllers/authors_controller.rb with:
class AuthorsController < ApplicationController
resources_controller_for :authors
end
** Running generated controller specs
rake spec:controllers
(in /Users/tomtt/created/projects/test/resources_controller_spec)
................
Finished in 0.101291 seconds
16 examples, 0 failures
** Migrating down
** Cleaning up generated files for resource: author
rm app/models/author.rb
rm app/controllers/authors_controller.rb
rm app/helpers/authors_helper.rb
rm -rf app/views/authors
rm db/migrate/20090505175957_create_authors.rb
rm spec/models/author_spec.rb
rm spec/fixtures/authors.yml
rm spec/controllers/authors_controller_spec.rb
rm spec/helpers/authors_helper_spec.rb
rm -rf spec/views/authors
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment