spec/bar_spec.rb in rubyvis-0.3.6 vs spec/bar_spec.rb in rubyvis-0.4.0

- old
+ new

@@ -2,9 +2,12 @@ describe Rubyvis::Bar do it "should have correct properties" do props=[:antialias, :bottom, :cursor, :data, :events, :fill_style, :height, :id, :left, :line_width, :reverse, :right, :stroke_style, :title, :top, :visible, :width].inject({}) {|ac, v| ac[v]=true; ac} Rubyvis::Bar.properties.should==props end + it "Rubyvis.Bar be the same as Rubyvis::Bar" do + Rubyvis.Bar.should eql Rubyvis::Bar + end it "should return correct defaults" do props=Rubyvis::Bar.defaults._properties props.size.should==2 props[0].name.should==:line_width props[0].value.should==1.5 \ No newline at end of file