Sometimes the ouput from a run test command does not contain a resolvable file name, which leads to the output raises an exception. The enclosed patch fixes this problem (git diff). Here is an example where i used "raise user.to_yaml" to reproduce the problem:
Loaded suite /.../test/integration/planning_two_test
Started
E
Finished in 3.310817 seconds.
1) Error:
test_planning_two(PlanningTwoTest):
RuntimeError: '---
- !ruby/object:User
attributes:
salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:420:in
`lstat': No such file or directory -
/Users/knut/dev/dpm/VelociterScrum/src/velociterscrum/test/integration/updated_at:
2009-02-05 09 (Errno::ENOENT) from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:420:in
`realpath_rec' from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:453:in
`realpath' from /Users/knut/Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:81
from /Users/knut/Library/Application
Support/TextMate/Support/lib/tm/executor.rb:103:in `call' from
/Users/knut/Library/Application
Support/TextMate/Support/lib/tm/executor.rb:103:in `run' from
/Users/knut/Library/Application Support/TextMate/Support/lib/io.rb:55:in
`call' from /Users/knut/Library/Application
Support/TextMate/Support/lib/io.rb:55:in `exhaust' from
/Users/knut/Library/Application Support/TextMate/Support/lib/io.rb:55:in
`each_line' from /Users/knut/Library/Application
Support/TextMate/Support/lib/io.rb:55:in `exhaust' from
/Users/knut/Library/Application
Support/TextMate/Support/lib/tm/process.rb:169:in `run' from
/Users/knut/Library/Application
Support/TextMate/Support/lib/tm/executor.rb:123:in `run' from
/Users/knut/Library/Application
Support/TextMate/Support/lib/tm/executor.rb:196:in `process_output_wrapper'
from /Users/knut/Library/Application
Support/TextMate/Support/lib/tm/executor.rb:122:in `run' from
/Users/knut/Library/Application
Support/TextMate/Support/lib/tm/htmloutput.rb:135:in `call' from
/Users/knut/Library/Application
Support/TextMate/Support/lib/tm/htmloutput.rb:135:in `show' from
/Users/knut/Library/Application
Support/TextMate/Support/lib/tm/executor.rb:97:in `run' from
/Users/knut/Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:65
And the terminal result is:
Loaded suite integration/planning_two_test
Started
E
Finished in 3.28637 seconds.
1) Error:
test_planning_two(PlanningTwoTest):
RuntimeError: ---
- !ruby/object:User
attributes:
salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd
updated_at: 2009-02-05 08:44:13
activated_at:
crypted_password: 00742970dc9e6319f8019fd54864d3ea740f04b1
deleted_at:
initials: KS
...intentionally left out...
integration/planning_two_test.rb:99:in `estimates_and_assigns_resources'
integration/planning_two_test.rb:97:in `each'
integration/planning_two_test.rb:97:in `estimates_and_assigns_resources'
integration/planning_two_test.rb:25:in `test_planning_two'
./integration_test_helper.rb:8:in `instance_eval'
./integration_test_helper.rb:8:in `new_session'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/integration.rb:482:in
`open_session'
./integration_test_helper.rb:5:in `new_session'
integration/planning_two_test.rb:14:in `test_planning_two'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:94:in
`__send__'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:94:in
`run'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/integration.rb:597:in
`run'
1 tests, 139 assertions, 0 failures, 1 errors
rubymate_fix.diff
Description: Binary data
_______________________________________________ textmate-dev mailing list [email protected] http://lists.macromates.com/listinfo/textmate-dev
