Created
August 12, 2009 07:49
-
-
Save sheldonh/166369 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| require File.join(File.dirname(__FILE__), '..', '..', 'test_helper') | |
| require 'unix_like/spool/file' | |
| require 'time' | |
| class FileTest < Test::Unit::TestCase | |
| def setup | |
| prepare_vroot | |
| @spool = stub('spool_directory', :path => VROOT) | |
| end | |
| def teardown | |
| destroy_vroot | |
| end | |
| def test_should_accept_subdir_up_front | |
| @file = UnixLike::Spool::File.new(@spool, 'file1', 'subdir', '.') | |
| assert_equal ::File.join('subdir', 'file1'), @file.relative_path | |
| end | |
| def test_should_figure_out_subdir_if_not_given_up_front | |
| end | |
| def test_should_not_require_backing_file_to_exist_up_front | |
| end | |
| def test_should_create_parent_directory_up_front | |
| end | |
| def test_should_move_into_state_subdirs | |
| end | |
| def test_should_create_new_state_subdir_as_needed | |
| end | |
| def test_should_move_back_into_spool_directory | |
| end | |
| end | |
| /home/sheldonh/workspace/unix_like/test/unix_like/spool/file_test.rb:6: FileTest is not a class (TypeError) | |
| from /home/sheldonh/workspace/unix_like/test/unix_like/spool/file_test.rb:31:in `require' | |
| from /usr/local/netbeans-6.7.1/ruby2/jruby-1.2.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:95:in `require_file' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:111:in `add_to_suites' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:110:in `each' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:110:in `add_to_suites' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:67:in `parse_args' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:60:in `loop' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:60:in `parse_args' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:168:in `run_mediator' | |
| from /usr/local/netbeans-6.7.1/ruby2/nb_test_mediator.rb:211 | |
| Finished in 0.0 seconds. | |
| 0 tests, 0 failures, 0 errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment