spec/element_spec.rb in watir-classic-4.1.0 vs spec/element_spec.rb in watir-classic-4.2.0
- old
+ new
@@ -8,12 +8,12 @@
end
describe "#style" do
it "returns the style attribute if the property exists" do
el = browser.div(:id, 'best_language')
- el.style("color").should == "red"
- el.style("text-decoration").should == "underline"
- el.style("cursor").should == "pointer"
+ expect(el.style("color")).to eq("red")
+ expect(el.style("text-decoration")).to eq("underline")
+ expect(el.style("cursor")).to eq("pointer")
end
end
end