Sha256: a37848db8537998e2cc8a78184e6f91b5ffe45f0522732ce6f97d7b94fd79e9b
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)+"/spec_helper.rb") describe Rubyvis::Image do include Rubyvis::GeneralSpec it "Rubyvis.Image be the same as Rubyvis::Image" do expect(Rubyvis.Image).to eql Rubyvis::Image end it "should render correctly" do w = 400 h = 400 vis = Rubyvis::Panel.new(). width(w). height(h). margin(20). stroke_style("#ccc"); vis.add(Rubyvis::Image).url('fixtures/tipsy.gif') vis.render() pv_out=fixture_svg_read("image.svg") expect(vis.to_svg).to have_same_svg_elements(pv_out) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyvis-0.7.0 | spec/image_spec.rb |