spec/image_spec.rb in rubyvis-0.6.1 vs spec/image_spec.rb in rubyvis-0.7.0

- old
+ new

@@ -2,11 +2,11 @@ describe Rubyvis::Image do include Rubyvis::GeneralSpec it "Rubyvis.Image be the same as Rubyvis::Image" do - Rubyvis.Image.should eql Rubyvis::Image + expect(Rubyvis.Image).to eql Rubyvis::Image end it "should render correctly" do w = 400 h = 400 @@ -19,9 +19,9 @@ vis.add(Rubyvis::Image).url('fixtures/tipsy.gif') vis.render() pv_out=fixture_svg_read("image.svg") - vis.to_svg.should have_same_svg_elements(pv_out) + expect(vis.to_svg).to have_same_svg_elements(pv_out) end end