spec/scale_linear_spec.rb in rubyvis-0.1.1 vs spec/scale_linear_spec.rb in rubyvis-0.1.2

- old
+ new

@@ -69,19 +69,9 @@ @y = Rubyvis.Scale.linear(0, @h_dom).range(0,@h) end it "y should be a Scale" do @y.should be_a(Rubyvis::Scale::Linear) end - it "should set domain with dates" do - pending("Should accept dates as domain values") - data= [ - { :date=> Date.today, :wounds=> 0, :other=> 110, :disease=> 110 }, - { :date=> Date.new, :wounds=> 2, :other=> 130, :disease=> 110 } - - ] - x=Rubyvis.Scale.linear(data, lambda {|d| d[:date]}) - - end it "should respond to domain" do @y.domain.should==[0, 1000] @y.domain(1) @y.domain.should==[1,1] @y.domain(1,100,300) \ No newline at end of file