spec/spec_helper.rb in knife-windows-1.1.1 vs spec/spec_helper.rb in knife-windows-1.1.2

- old
+ new

@@ -61,10 +61,14 @@ def chef_gte_12_5? Chef::VERSION.split('.')[0..1].join('.').to_f >= 12.5 end +def chef_gte_12_6? + Chef::VERSION.split('.')[0..1].join('.').to_f >= 12.6 +end + def chef_lt_12? Chef::VERSION.split('.').first.to_i < 12 end def chef_eq_11? @@ -79,9 +83,10 @@ RSpec.configure do |config| config.filter_run_excluding :windows_only => true unless windows? config.filter_run_excluding :windows_2012_only => true unless windows2012? config.filter_run_excluding :chef_gte_12_only => true unless chef_gte_12? config.filter_run_excluding :chef_gte_12_5_only => true unless chef_gte_12_5? + config.filter_run_excluding :chef_gte_12_6_only => true unless chef_gte_12_6? config.filter_run_excluding :chef_lt_12_5_only => true if chef_gte_12_5? config.filter_run_excluding :chef_lt_12_only => true unless chef_lt_12? config.filter_run_excluding :if_chef_11 => true if chef_eq_11? end