Sha256: b5c5f38fa047d9ee67da15cb49b7be8875601e099e9d2cf025b363f2f8b04d6b

Contents?: true

Size: 527 Bytes

Versions: 20

Compression:

Stored size: 527 Bytes

Contents

require 'test_helper'

describe Unitwise::Prefix do
  subject { Unitwise::Prefix }
  let(:m) { Unitwise::Prefix.find('m')}
  describe "::data" do
    it "should be an Array" do
      subject.data.must_be_instance_of Array
    end
  end

  describe "::all" do
    it "should be an array of prefixes" do
      subject.all.must_be_instance_of Array
      subject.all.first.must_be_instance_of Unitwise::Prefix
    end
  end

  describe "#scalar" do
    it "should be a number" do
      m.scalar.must_equal 0.001
    end
  end

end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
unitwise-2.3.0 test/unitwise/prefix_test.rb
unitwise-2.2.0 test/unitwise/prefix_test.rb
unitwise-2.1.0 test/unitwise/prefix_test.rb
unitwise-2.0.0 test/unitwise/prefix_test.rb
unitwise-1.1.0 test/unitwise/prefix_test.rb
unitwise-193-1.0.4 test/unitwise/prefix_test.rb
unitwise-1.0.4 test/unitwise/prefix_test.rb
unitwise-1.0.3 test/unitwise/prefix_test.rb
unitwise-1.0.2 test/unitwise/prefix_test.rb
unitwise-1.0.1 test/unitwise/prefix_test.rb
unitwise-1.0.0 test/unitwise/prefix_test.rb
unitwise-0.10.0 test/unitwise/prefix_test.rb
unitwise-0.9.1 test/unitwise/prefix_test.rb
unitwise-0.9.0 test/unitwise/prefix_test.rb
unitwise-0.8.1 test/unitwise/prefix_test.rb
unitwise-0.8.0 test/unitwise/prefix_test.rb
unitwise-0.7.1 test/unitwise/prefix_test.rb
unitwise-0.7.0 test/unitwise/prefix_test.rb
unitwise-0.6.2 test/unitwise/prefix_test.rb
unitwise-0.6.1 test/unitwise/prefix_test.rb