Skip to content

Instantly share code, notes, and snippets.

@foca
Created January 5, 2009 04:09
Show Gist options
  • Save foca/43259 to your computer and use it in GitHub Desktop.
Save foca/43259 to your computer and use it in GitHub Desktop.
foca ~/projects/self/integrity (git: master)
▸ gem list | grep context
jeremymcanally-context (0.5, 0.0.6)
foca ~/projects/self/integrity (git: master)
▸ ruby test/acceptance/delete_project_test.rb
Loaded suite test/acceptance/delete_project_test
Started
As an administrator,
I want to delete projects I don't care about anymore
So that Integrity isn't cluttered with unimportant projects
EE
Finished in 0.881004 seconds.
1) Error:
test_a_user_can_t_delete_a_project_by_doing_a_manual_delete_request(DeleteProjectTest):
Errno::ENOENT: No such file or directory - /Users/foca/Projects/self/integrity/exports
/opt/local/lib/ruby/1.8/fileutils.rb:1297:in `unlink'
/opt/local/lib/ruby/1.8/fileutils.rb:1297:in `remove_file'
/opt/local/lib/ruby/1.8/fileutils.rb:1302:in `platform_support'
/opt/local/lib/ruby/1.8/fileutils.rb:1296:in `remove_file'
/opt/local/lib/ruby/1.8/fileutils.rb:1285:in `remove'
/opt/local/lib/ruby/1.8/fileutils.rb:756:in `remove_entry'
/opt/local/lib/ruby/1.8/fileutils.rb:1339:in `postorder_traverse'
/opt/local/lib/ruby/1.8/fileutils.rb:754:in `remove_entry'
/opt/local/lib/ruby/1.8/fileutils.rb:612:in `rm_r'
/opt/local/lib/ruby/1.8/fileutils.rb:608:in `each'
/opt/local/lib/ruby/1.8/fileutils.rb:608:in `rm_r'
./test/acceptance/../helpers/acceptance.rb:72
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:57:in `instance_eval'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:57:in `run_each_callbacks'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:57:in `each'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:57:in `run_each_callbacks'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:51:in `teardown'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.3/lib/mocha/test_case_adapter.rb:80:in `run'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:32:in `run'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:30:in `each'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:30:in `run'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:32:in `run'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:30:in `each'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:30:in `run'
2) Error:
test_an_admin_can_delete_a_project_from_the_edit_project_screen(DeleteProjectTest):
Errno::ENOENT: No such file or directory - /Users/foca/Projects/self/integrity/exports
/opt/local/lib/ruby/1.8/fileutils.rb:1297:in `unlink'
/opt/local/lib/ruby/1.8/fileutils.rb:1297:in `remove_file'
/opt/local/lib/ruby/1.8/fileutils.rb:1302:in `platform_support'
/opt/local/lib/ruby/1.8/fileutils.rb:1296:in `remove_file'
/opt/local/lib/ruby/1.8/fileutils.rb:1285:in `remove'
/opt/local/lib/ruby/1.8/fileutils.rb:756:in `remove_entry'
/opt/local/lib/ruby/1.8/fileutils.rb:1339:in `postorder_traverse'
/opt/local/lib/ruby/1.8/fileutils.rb:754:in `remove_entry'
/opt/local/lib/ruby/1.8/fileutils.rb:612:in `rm_r'
/opt/local/lib/ruby/1.8/fileutils.rb:608:in `each'
/opt/local/lib/ruby/1.8/fileutils.rb:608:in `rm_r'
./test/acceptance/../helpers/acceptance.rb:72
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:57:in `instance_eval'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:57:in `run_each_callbacks'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:57:in `each'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:57:in `run_each_callbacks'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/lifecycle.rb:51:in `teardown'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.3/lib/mocha/test_case_adapter.rb:80:in `run'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:32:in `run'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:30:in `each'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:30:in `run'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:32:in `run'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:30:in `each'
/opt/local/lib/ruby/gems/1.8/gems/jeremymcanally-context-0.5/lib/context/suite.rb:30:in `run'
2 tests, 2 assertions, 0 failures, 2 errors
foca ~/projects/self/integrity (git: master)
▸ sudo gem uninstall jeremymcanally-context -v 0.5
Successfully uninstalled jeremymcanally-context-0.5
foca ~/projects/self/integrity (git: master)
▸ ruby test/acceptance/delete_project_test.rb
Loaded suite test/acceptance/delete_project_test
Started
As an administrator,
I want to delete projects I don't care about anymore
So that Integrity isn't cluttered with unimportant projects
..
Finished in 0.824696 seconds.
2 tests, 2 assertions, 0 failures, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment