Sha256: 6c828b1c3799757b3b81359d3b37871b0e5aa5ecb54e13408d74a1d3d093aeef
Contents?: true
Size: 355 Bytes
Versions: 2
Compression:
Stored size: 355 Bytes
Contents
require 'spec_helper' RSpec.describe Symbol do describe '#to_unit' do describe 'with valid unit' do subject { :dozen } specify { expect(subject.to_unit).to 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.3 | spec/ruby-measurement/core_ext/symbol_spec.rb |
ruby-measurement-1.2.2 | spec/ruby-measurement/core_ext/symbol_spec.rb |