spec/page-object/elements/span_spec.rb in page-object-1.0.2 vs spec/page-object/elements/span_spec.rb in page-object-1.0.3

- old
+ new

@@ -6,21 +6,21 @@ describe "when mapping how to find an element" do it "should map watir types to same" do [:class, :id, :index, :text, :title, :xpath].each do |t| identifier = span.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, :index, :name, :text, :title, :xpath].each do |t| key, value = span.selenium_identifier_for t => 'value' - key.should == t + expect(key).to eql t end end end it "should register with tag_name :span" do - ::PageObject::Elements.element_class_for(:span).should == ::PageObject::Elements::Span + expect(::PageObject::Elements.element_class_for(:span)).to eql ::PageObject::Elements::Span end end