Sha256: db7ef24286e6761948576dfb7409af2c5d4373b633fe3b2266eb4380deb4c321

Contents?: true

Size: 246 Bytes

Versions: 10

Compression:

Stored size: 246 Bytes

Contents

require 'spec_helper'

describe NumberMetric do
  specify { subject.convert('1').should == 1 }
  specify { subject.convert('1abc').should == 1 }
  specify { subject.convert(1.2).should == 1.2 }
  specify { subject.convert('abc').should == 0 }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
techcor-0.0.10 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.9 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.8 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.7 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.6 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.5 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.4 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.3 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.2 spec/lib/metrics/number_metric_spec.rb
techcor-0.0.1 spec/lib/metrics/number_metric_spec.rb