Sha256: 1d4138d18458d6551d2693d50b056fc3e56613a9676e24ea3d131e5593be691a

Contents?: true

Size: 305 Bytes

Versions: 10

Compression:

Stored size: 305 Bytes

Contents

require 'spec_helper'

describe BooleanMetric do
  specify { subject.convert(1).should == true }
  specify { subject.convert('abc').should == true }
  specify { subject.convert({}).should == true }
  specify { subject.convert(false).should == false }
  specify { subject.convert(nil).should == false }
end

Version data entries

10 entries across 10 versions & 1 rubygems

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