spec/dot_spec.rb in rubyvis-0.4.0 vs spec/dot_spec.rb in rubyvis-0.4.1

- old
+ new

@@ -12,19 +12,19 @@ it "should render correctly 'dot-anchor' example" do w = 400 h = 400 - vis = Rubyvis::Panel.new() - .width(w) - .height(h) - .margin(20) - .stroke_style("#ccc"); + vis = Rubyvis::Panel.new(). + width(w). + height(h). + margin(20). + stroke_style("#ccc"); - dot = vis.add(Rubyvis::Dot) - .top(w / 2.0) - .left(w / 2.0) - .shape_radius(w >> 2) + dot = vis.add(Rubyvis::Dot). + top(w / 2.0). + left(w / 2.0). + shape_radius(w >> 2) dot.anchor("top").add(Rubyvis::Label).text("top"); dot.anchor("left").add(Rubyvis::Label).text("left"); dot.anchor("right").add(Rubyvis::Label).text("right"); dot.anchor("bottom").add(Rubyvis::Label).text("bottom"); \ No newline at end of file