require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")
module Webrat
describe Field do
it "should have nice inspect output" do
html = <<-HTML
HTML
element = Webrat::XML.document(html).css("input").first
checkbox = CheckboxField.new(nil, element)
checkbox.inspect.should =~ /^#