sniff 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sniff/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sniff
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -66,6 +66,9 @@ end
66
66
  Then /^the calculation should comply with standards? "(.*)"$/ do |standard_list|
67
67
  standards = standard_list.split(/,\s*/).map(&:to_sym)
68
68
  compliance = @activity.deliberations[:emission].compliance
69
+ unless standards.empty?
70
+ compliance.should_not be_empty, 'Expected calculation to comply with some standards, but it complied with none'
71
+ end
69
72
  (compliance - standards).should be_empty
70
73
  end
71
74
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sniff
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.1
5
+ version: 0.7.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Derek Kastner
@@ -243,7 +243,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
243
243
  requirements:
244
244
  - - ">="
245
245
  - !ruby/object:Gem::Version
246
- hash: -3204111369250944856
246
+ hash: 416302750492710009
247
247
  segments:
248
248
  - 0
249
249
  version: "0"