Skip to content

Commit

Permalink
Fixing up XHTML in some specs
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Nov 27, 2008
1 parent 1d5ec1a commit 226ab89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/webrat/core/field_spec.rb
Expand Up @@ -3,24 +3,24 @@
module Webrat
describe CheckboxField do
it "should say it is checked if it is" do
checkbox = CheckboxField.new(nil, (Webrat::XML.document("<input type='checkbox' checked='checked'>").search('input')).first)
checkbox = CheckboxField.new(nil, (Webrat::XML.document("<input type='checkbox' checked='checked' />").search('input')).first)
checkbox.should be_checked
end

it "should say it is not checked if it is not" do
checkbox = CheckboxField.new(nil, (Webrat::XML.document("<input type='checkbox'>").search('input')).first)
checkbox = CheckboxField.new(nil, (Webrat::XML.document("<input type='checkbox' />").search('input')).first)
checkbox.should_not be_checked
end
end

describe RadioField do
it "should say it is checked if it is" do
radio_button = RadioField.new(nil, (Webrat::XML.document("<input type='radio' checked='checked'>").search('input')).first)
radio_button = RadioField.new(nil, (Webrat::XML.document("<input type='radio' checked='checked' />").search('input')).first)
radio_button.should be_checked
end

it "should say it is not checked if it is not" do
radio_button = RadioField.new(nil, (Webrat::XML.document("<input type='radio'>").search('input')).first)
radio_button = RadioField.new(nil, (Webrat::XML.document("<input type='radio' />").search('input')).first)
radio_button.should_not be_checked
end
end
Expand Down

0 comments on commit 226ab89

Please sign in to comment.