lib/capybara/spec/session/find_field_spec.rb in capybara-2.11.0 vs lib/capybara/spec/session/find_field_spec.rb in capybara-2.12.0

- old
+ new

@@ -60,9 +60,11 @@ end context "with :disabled option" do it "should find disabled fields when true" do expect(@session.find_field("Disabled Checkbox", disabled: true)[:name]).to eq("form[disabled_checkbox]") + expect(@session.find_field("form_disabled_fieldset_child", disabled: true)[:name]).to eq("form[disabled_fieldset_child]") + expect(@session.find_field("form_disabled_fieldset_descendant", disabled: true)[:name]).to eq("form[disabled_fieldset_descendant]") end it "should not find disabled fields when false" do expect do @session.find_field("Disabled Checkbox", disabled: false)