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