Skip to content

Commit

Permalink
looks like these commented out matchers work now, win!
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfrench committed Mar 1, 2010
1 parent 9604949 commit f7105c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/inputs/select_input_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,8 @@

it "should only select the first value" do
output_buffer.should have_tag("form li select option[@selected='selected']", :count => 1)
# FIXME: Not supported by Nokogiri.
# output_buffer.should have_tag("form li select:not([@multiple]) option[@selected='selected']", /bob/i)
# output_buffer.should have_tag("form li select:not([@multiple]) option[@selected='selected'][@value='#{@bob.id}']")
output_buffer.should have_tag("form li select:not([@multiple]) option[@selected='selected']", /bob/i)
output_buffer.should have_tag("form li select:not([@multiple]) option[@selected='selected'][@value='#{@bob.id}']")
end
end

Expand Down

0 comments on commit f7105c5

Please sign in to comment.