Here's the controller: class SayController < ApplicationController def hello @name = 'john' end end
Here's the view template: <html> <head> <title>Say Hello</title> </head> <body> <h1>Hello, <%= @name%></h1> </body> </html> Here's the functional test: require File.dirname(__FILE__) + '/../test_helper' class SayControllerTest < ActionController::TestCase def test_hello get :hello assert_template "say/hello" assert_response :success assert_tag :tag => "h1", :child => /john/ end end It hits a case where Rail uses Kernel#loop, so I implemented it. It uncovered a couple of problems with how we implemented Hash#each*. Ruby hashes can be modified from within the blocks that we yield to, but we were using foreach () to iterate over the underlying Dictionary<object, object>. Both of these fixes are on my machine, and I'll submit later once I get a connection back to corpnet. We have WEBrick nearly running now. We are currently blocking on IO#select. Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core