Sha256: 6d143b1b31f080bf1615446a1a0dda9aa2eb2657471b9de4d63a02c8bc5f9c91
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
require 'spec_helper' describe Symbol do describe '#to_unit' do describe 'with valid unit' do subject { :dozen } specify { subject.to_unit.should eq Measurement::Unit[:dozen] } end describe 'with invalid unit' do subject { :person } specify { expect { subject.to_unit }.to raise_error } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-measurement-1.2.1 | spec/ruby-measurement/core_ext/symbol_spec.rb |
ruby-measurement-1.2.0 | spec/ruby-measurement/core_ext/symbol_spec.rb |