Webrat with Rails3

Hi everybody!

I'm upgrading a Rails 2.3.5 app to Rails 3.0.3. But my integration tests aren't working. I'm getting this error:

NoMethodError: undefined method `content_type' for nil:NilClass

The line to blame is

assert_select "input#artist.title.unsolved", 1

My test_helper.rb for webrat looks likes this:

require "webrat" require 'webrat/core/matchers' include Webrat::Methods

Webrat.configure do |config|   config.mode = :rack end

I'm using shoulda 2.11.3 and webrat 0.7.3 for the testing. I've read, that webrat and shoulda are compatible with Rails3.

Anyone an idea how to fix this?

Thanks! Hoelzl