Sha256: 34f39860bdccfdfe999161060bf38e3c794eac4d3a00dfe21d120bb54ef4d4a6

Contents?: true

Size: 633 Bytes

Versions: 8

Compression:

Stored size: 633 Bytes

Contents

require File.dirname(__FILE__)+"/spec_helper.rb"
describe Rubyvis::Mark do
  it "should have correct properties" do
    props=[:antialias, :bottom, :cursor, :data, :events, :id, :left, :reverse, :right, :title, :top, :visible].inject({}) {|ac, v| ac[v]=true; ac}
    Rubyvis::Mark.properties.should==props
  end
  it "should return correct defaults" do
    props=Rubyvis::Mark.defaults._properties.sort {|a,b| a.name.to_s<=>b.name.to_s}
    props[1].name.should==:data
    props[1].value.should be_instance_of Proc
    props[3].name.should==:visible
    props[0].name.should==:antialias
    props[2].name.should==:events
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubyvis-0.2.1 spec/mark_spec.rb
rubyvis-0.2.0 spec/mark_spec.rb
rubyvis-0.1.7 spec/mark_spec.rb
rubyvis-0.1.6 spec/mark_spec.rb
rubyvis-0.1.5 spec/mark_spec.rb
rubyvis-0.1.4 spec/mark_spec.rb
rubyvis-0.1.3 spec/mark_spec.rb
rubyvis-0.1.2 spec/mark_spec.rb