clc-cheffish 0.8.clc → 0.8.3.clc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ require 'chef/provider/chef_organization'
5
5
  describe Chef::Resource::ChefOrganization do
6
6
  extend SpecSupport
7
7
 
8
- when_the_chef_server 'is in multi-org mode', :osc_compat => false, :single_org => false do
8
+ when_the_chef_12_server 'is in multi-org mode' do
9
9
  context 'and chef_server_url is pointed at the top level' do
10
10
  user 'u', {}
11
11
  user 'u2', {}
@@ -44,7 +44,7 @@ describe Chef::Resource::ChefUser do
44
44
  end
45
45
  end
46
46
 
47
- when_the_chef_server 'is multitenant', :osc_compat => false, :single_org => false do
47
+ when_the_chef_12_server 'is in multi-org mode' do
48
48
  context 'and chef_server_url is pointed at the top level' do
49
49
  context 'and we run a recipe that creates user "blah"'do
50
50
  with_converge do
@@ -9,6 +9,12 @@ require 'support/repository_support'
9
9
  module SpecSupport
10
10
  include ChefZero::RSpec
11
11
 
12
+ def when_the_chef_12_server(*args, &block)
13
+ if Gem::Version.new(ChefZero::VERSION) >= Gem::Version.new('3.1')
14
+ when_the_chef_server(*args, :osc_compat => false, :single_org => false, &block)
15
+ end
16
+ end
17
+
12
18
  def self.extended(klass)
13
19
  klass.class_eval do
14
20
  extend RepositorySupport
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-cheffish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.clc
4
+ version: 0.8.3.clc
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef