Sha256: 64855d02fb47a2c83b001a06b1698de31c747135ac975f9532427602deab8d0c

Contents?: true

Size: 246 Bytes

Versions: 2

Compression:

Stored size: 246 Bytes

Contents

describe Numeric do
  before do
    @number = 50
  end

  it "should convert to pixel coordinates" do
    @number.from_pixels.should == 1.5625
  end

  it "should convert from pixel coordinates" do
    1.5625.to_pixels.should == @number
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 spec/motion/joybox/common/numeric_spec.rb
joybox-1.1.0 spec/motion/joybox/common/numeric_spec.rb