Sinatra test suite failures
---------------------------

                 Key: JRUBY-4533
                 URL: http://jira.codehaus.org/browse/JRUBY-4533
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.4
            Reporter: Vladimir Sizikov


Sinatra test suite failures have been reported on IRC. I can reproduce them 
easily:

1. Clone sinatra from: git://github.com/sinatra/sinatra.git
2. Run jruby -S rake test

This will result in 9 test failures. The good news that most of them seem to be 
due to the single problem:
LocalJumpError: yield called out of block.

The output: 

{noformat}
jruby -S rake
(in D:/work/jruby-dev/repos/sinatra)
Loaded suite 
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...........................E........
Finished in 2.125 seconds.

  1) Failure:
test_renders_builder_files_in_views_path(BuilderTest) 
[./test/builder_test.rb:36]:
<"<exclaim>You're my boy, Blue!</exclaim>\n"> expected but was
<"<inspect/>\n<exclaim>You're my boy, Blue!</exclaim>\n">.

  2) Failure:
test_renders_inline_Builder_strings(BuilderTest) [./test/builder_test.rb:16]:
<"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"> expected but was
<"<inspect/>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n">.

  3) Error:
test_renders_with_file_layouts(BuilderTest):
LocalJumpError: yield called out of block
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:115:in
 `instance_eval'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in
 `_nested_structures'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in
 `method_missing'
    ./test/views/layout2.builder:1:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:144:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:343:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:111:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:323:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:329:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:307:in `builder'
    ./test/builder_test.rb:53:in `GET /'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:841:in `route'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `route_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:476:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `each'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:576:in `dispatch!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:376:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:983:in `synchronize'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in
 `_call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/mock_session.rb:30:in
 `request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:207:in
 `process_request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:57:in
 `get'
    ./test/builder_test.rb:10:in `builder_app'
    ./test/builder_test.rb:52:in `test_renders_with_file_layouts'

  4) Error:
test_renders_with_inline_layouts(BuilderTest):
LocalJumpError: yield called out of block
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:115:in
 `instance_eval'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in
 `_nested_structures'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in
 `method_missing'
    ./test/builder_test.rb:41:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:144:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:343:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:111:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:323:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:329:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:307:in `builder'
    ./test/builder_test.rb:44:in `GET /'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:841:in `route'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `route_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:476:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `each'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:576:in `dispatch!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:376:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:983:in `synchronize'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in
 `_call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/mock_session.rb:30:in
 `request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:207:in
 `process_request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:57:in
 `get'
    ./test/builder_test.rb:46:in `test_renders_with_inline_layouts'

  5) Error:
test_renders_with_file_layouts(ERBTest):
LocalJumpError: yield called out of block
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:218:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:233:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:111:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:323:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:329:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:288:in `erb'
    ./test/erb_test.rb:45:in `GET /'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:841:in `route'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `route_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:476:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `each'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:576:in `dispatch!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:376:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:983:in `synchronize'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in
 `_call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/mock_session.rb:30:in
 `request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:207:in
 `process_request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:57:in
 `get'
    ./test/erb_test.rb:9:in `erb_app'
    ./test/erb_test.rb:44:in `test_renders_with_file_layouts'

  6) Error:
test_renders_with_inline_layouts(ERBTest):
LocalJumpError: yield called out of block
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:218:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:233:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:111:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:323:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:329:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:288:in `erb'
    ./test/erb_test.rb:36:in `GET /'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:841:in `route'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `route_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:476:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `each'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:576:in `dispatch!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:376:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:983:in `synchronize'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in
 `_call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/mock_session.rb:30:in
 `request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:207:in
 `process_request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:57:in
 `get'
    ./test/erb_test.rb:38:in `test_renders_with_inline_layouts'

  7) Error:
test_renders_with_file_layouts(ERubisTest):
LocalJumpError: yield called out of block
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:264:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:233:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:111:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:323:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:329:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:292:in `erubis'
    ./test/erubis_test.rb:46:in `GET /'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:841:in `route'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `route_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:476:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `each'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:576:in `dispatch!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:376:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:983:in `synchronize'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in
 `_call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/mock_session.rb:30:in
 `request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:207:in
 `process_request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:57:in
 `get'
    ./test/erubis_test.rb:10:in `erubis_app'
    ./test/erubis_test.rb:45:in `test_renders_with_file_layouts'

  8) Error:
test_renders_with_inline_layouts(ERubisTest):
LocalJumpError: yield called out of block
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:264:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:233:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:111:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:323:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:329:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:292:in `erubis'
    ./test/erubis_test.rb:37:in `GET /'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:841:in `route'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `route_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:476:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `each'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:576:in `dispatch!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:376:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:983:in `synchronize'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in
 `_call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/mock_session.rb:30:in
 `request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:207:in
 `process_request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:57:in
 `get'
    ./test/erubis_test.rb:39:in `test_renders_with_inline_layouts'

  9) Error:
test_passes_locals_to_the_layout(TemplatesTest):
LocalJumpError: yield called out of block
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:158:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:233:in `evaluate'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/tilt.rb:111:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:323:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:329:in `render'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:288:in `erb'
    ./test/templates_test.rb:110:in `GET /'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:841:in `route'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:497:in `route_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:476:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:473:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `each'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:452:in `route!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:576:in `dispatch!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `instance_eval'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `catch'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:541:in `invoke'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:387:in `call!'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:376:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:983:in `synchronize'
    D:/work/jruby-dev/repos/sinatra/lib/sinatra/base.rb:957:in `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in
 `_call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in
 `call'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/mock_session.rb:30:in
 `request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:207:in
 `process_request'
    
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rack-test-0.5.3/lib/rack/test.rb:57:in
 `get'
    ./test/templates_test.rb:114:in `test_passes_locals_to_the_layout'

293 tests, 531 assertions, 2 failures, 7 errors
rake aborted!
Command failed with status (1): [D:/work/jruby-dev/jruby/bin/jruby.exe -I"l...]
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to