spec/page-object/elements/paragraph_spec.rb in page-object-1.0.2 vs spec/page-object/elements/paragraph_spec.rb in page-object-1.0.3
- old
+ new
@@ -6,23 +6,22 @@
describe "when mapping how to find an element" do
it "should map watir types to same" do
[:class, :id, :index, :name, :xpath].each do |t|
identifier = paragraph.watir_identifier_for t => 'value'
- identifier.keys.first.should == t
+ expect(identifier.keys.first).to eql t
end
end
it "should map selenium types to same" do
[:class, :id, :name, :xpath, :index].each do |t|
key, value = paragraph.selenium_identifier_for t => 'value'
- key.should == t
+ expect(key).to eql t
end
end
end
describe "interface" do
-
it "should register with type :checkbox" do
- ::PageObject::Elements.element_class_for(:p).should == ::PageObject::Elements::Paragraph
+ expect(::PageObject::Elements.element_class_for(:p)).to eql ::PageObject::Elements::Paragraph
end
end
end