Sha256: d75762461546430691ec53688649b88baaa8e39453f418dd0a9f70c145c16294
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
require 'helper' describe 'DataMiner::UnitConverter::Conversions' do before do @original_converter = DataMiner.unit_converter DataMiner.unit_converter = :conversions end after do DataMiner.unit_converter = @original_converter end describe '#convert' do it 'converts a value from one unit to another' do value = DataMiner.unit_converter.convert 3.5, :kilograms, :pounds assert value.is_a?(Float) value.must_be_close_to 7.71617918 end end end
Version data entries
3 entries across 3 versions & 1 rubygems