From ba95363486d574fd2fd333b779aeba32880eae7d Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 15 Nov 2009 16:38:09 -0500 Subject: [PATCH] Spec fix: Don't depend on Nokogiri #inspect output --- spec/private/core/field_spec.rb | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/spec/private/core/field_spec.rb b/spec/private/core/field_spec.rb index 58174c1..0a7e255 100644 --- a/spec/private/core/field_spec.rb +++ b/spec/private/core/field_spec.rb @@ -2,18 +2,16 @@ require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") module Webrat describe Field do - unless RUBY_PLATFORM =~ /java/ - it "should have nice inspect output" do - html = <<-HTML - - - - HTML + 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 =~ /#>/ - end + element = Webrat::XML.document(html).css("input").first + checkbox = CheckboxField.new(nil, element) + checkbox.inspect.should =~ /^#