spec/watirspec/elements/checkbox_spec.rb in watir-6.11.0 vs spec/watirspec/elements/checkbox_spec.rb in watir-6.12.0

- old
+ new

@@ -167,10 +167,10 @@ expect(browser.checkbox(xpath: "//input[@id='new_user_interests_books']")).to be_enabled end it "returns false if the checkbox button is disabled" do expect(browser.checkbox(id: "new_user_interests_dentistry")).to_not be_enabled - expect(browser.checkbox(:xpath,"//input[@id='new_user_interests_dentistry']")).to_not be_enabled + expect(browser.checkbox(xpath: "//input[@id='new_user_interests_dentistry']")).to_not be_enabled end it "raises UnknownObjectException if the checkbox button doesn't exist" do expect { browser.checkbox(id: "no_such_id").enabled? }.to raise_unknown_object_exception expect { browser.checkbox(xpath: "//input[@id='no_such_id']").enabled? }.to raise_unknown_object_exception