The test thing is because /dev/null doesn't exist in Windows. I get the same error if I run "echo 'hello' > /dev/null" in a command prompt window.
However, if I "mkdir dev" then run the above again, it works. To Windows, /dev/null is a path with posix separators and it tries to find <current_drive>:\dev\ and write to the file "null". On 7/6/06, Scott Laird <[EMAIL PROTECTED]> wrote: > Thanks. The absolute/relative path thing is a bug, and I'll fix it for the > next release. > > I'm not sure what's up with the test failure. I'll look into it tonight and > see what's up. > > > Scott > > > On 7/6/06, Juan Lupión <[EMAIL PROTECTED]> wrote: > > On 7/6/06, Scott Laird <[EMAIL PROTECTED]> wrote: > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out the > new > > > Typo installer. Can I get a few people to test out the new Typo 3.99.1 > gem? > > > Do this: > > > > > > $ gem install typo > > > $ typo install /some/path > > > > I found that the path *must* be an absolute path. 'typo install > > ./typo' failed with chdir throwing (Errno::ENOENT) > Maybe the docs > > should state this more clearly. > > > > On the other hands, some tests failed, this is the trace: > > > > Tamarindo:~/Sites/typo juan$ rake test --trace > > (in /Users/juan/Sites/typo) > > ** Invoke test (first_time) > > ** Execute test > > ** Invoke test:units (first_time) > > ** Invoke db:test:prepare (first_time) > > ** Invoke environment (first_time) > > ** Execute environment > > ** Execute db:test:prepare > > ** Invoke db:test:clone (first_time) > > ** Invoke db:schema:dump (first_time) > > ** Invoke environment > > ** Execute db:schema:dump > > ** Execute db:test:clone > > ** Invoke db:schema:load (first_time) > > ** Invoke environment > > ** Execute db:schema:load > > ** Execute test:units > > /usr/local/bin/ruby -Ilib:test > > > "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" > > "test/unit/article_test.rb" > "test/unit/audioscrobbler_test.rb" > > "test/unit/blacklist_pattern_test.rb" > "test/unit/blog_test.rb" > > "test/unit/category_test.rb" "test/unit/comment_test.rb" > > "test/unit/configuration_test.rb" > "test/unit/delicious_test.rb" > > "test/unit/flickr_test.rb" "test/unit/fortythree_test.rb" > > "test/unit/magnolia_test.rb" > "test/unit/metafragment_test.rb" > > "test/unit/notification_mailer_test.rb" > "test/unit/observer_test.rb" > > "test/unit/page_cache_test.rb" "test/unit/page_test.rb" > > "test/unit/ping_test.rb" "test/unit/redirect_test.rb" > > "test/unit/resource_test.rb" "test/unit/sidebar_test.rb" > > "test/unit/tag_test.rb" "test/unit/text_filter_test.rb" > > "test/unit/theme_test.rb" "test/unit/trackback_test.rb" > > "test/unit/trigger_test.rb" "test/unit/user_test.rb" > > "test/unit/content_state/factory_test.rb" > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake/rake_test_loader > > Started > > > ............................................................................................................................................. > > Finished in 16.85309 seconds. > > > > 141 tests, 458 assertions, 0 failures, 0 errors > > ** Invoke test:functionals (first_time) > > ** Invoke db:test:prepare > > ** Execute test:functionals > > /usr/local/bin/ruby -Ilib:test > > "/usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake/rake_test_loader.rb" > > "test/functional/accounts_controller_test.rb" > > "test/functional/articles_controller_test.rb" > > "test/functional/backend_controller_test.rb" > > "test/functional/redirect_controller_test.rb" > > "test/functional/textfilter_controller_test.rb" > > "test/functional/theme_controller_test.rb" > > "test/functional/xml_controller_test.rb" > > "test/functional/admin/article_preview_test.rb" > > "test/functional/admin/blacklist_controller_test.rb" > > "test/functional/admin/categories_controller_test.rb" > > "test/functional/admin/comments_controller_test.rb" > > "test/functional/admin/content_controller_test.rb" > > "test/functional/admin/general_controller_test.rb" > > "test/functional/admin/pages_controller_test.rb" > > "test/functional/admin/resources_controller_test.rb" > > "test/functional/admin/textfilters_controller_test.rb" > > "test/functional/admin/themes_controller_test.rb" > > "test/functional/admin/trackbacks_controller_test.rb" > > "test/functional/admin/users_controller_test.rb" > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake/rake_test_loader > > Started > > > .......................................................................................................E.................................................................................................... > > Finished in 71.014778 seconds. > > > > 1) Error: > > > test_comment_spam_markdown_smarty(ArticlesControllerTest): > > ActiveRecord::Transactions::TransactionError: Transaction > aborted > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:124:in > > `replace' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations.rb:895:in > > `notify_users=' > > > /Users/juan/Sites/typo/config/../app/models/article.rb:180:in > > `add_notifications' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in > > `callback' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in > > `callback' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:260:in > > `create_without_timestamps' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/timestamp.rb:30:in > > `create' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1718:in > > `create_or_update_without_callbacks' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > > `create_or_update' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1392:in > > `save_without_validation' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:724:in > > `save_without_transactions' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > `save' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > `save' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1398:in > > `save_without_validation!' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:734:in > > `save!' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:699:in > > `create!' > > ./test/functional/articles_controller_test.rb:27:in > `setup_without_fixtures' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:548:in > > `setup' > > > > 204 tests, 792 assertions, 0 failures, 1 errors > > rake aborted! > > Test failures > > > /Users/juan/Sites/typo/config/../vendor/rails/railties/lib/tasks/testing.rake:35 > > /usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake.rb:387:in `execute' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in > `execute' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in > `invoke' > > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in > `invoke' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > `run' > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 > > /usr/local/bin/rake:18 > > > > > > -- > > ---------------------------------------------------- > > http://hronia.blogalia.com > > _______________________________________________ > > Typo-list mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > _______________________________________________ > Typo-list mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/typo-list > > -- Cheers, Kevin _______________________________________________ Typo-list mailing list [email protected] http://rubyforge.org/mailman/listinfo/typo-list
