chef 12.2.0.rc.1 → 12.2.0.rc.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,35 +30,12 @@ describe Chef::Resource::Deploy do
30
30
 
31
31
 
32
32
  class << self
33
-
34
- def resource_has_a_hash_attribute(attr_name)
35
- it "has a Hash attribute for #{attr_name.to_s}" do
36
- @resource.send(attr_name, {foo: "bar"})
37
- expect(@resource.send(attr_name)).to eql({foo: "bar"})
38
- expect {@resource.send(attr_name, 8675309)}.to raise_error(ArgumentError)
39
- end
40
-
41
- it "the Hash attribute for #{attr_name.to_s} is nillable" do
42
- @resource.send(attr_name, {foo: "bar"})
43
- expect(@resource.send(attr_name)).to eql({foo: "bar"})
44
- @resource.send(attr_name, nil)
45
- expect(@resource.send(attr_name)).to eql(nil)
46
- end
47
- end
48
-
49
33
  def resource_has_a_string_attribute(attr_name)
50
34
  it "has a String attribute for #{attr_name.to_s}" do
51
35
  @resource.send(attr_name, "this is a string")
52
36
  expect(@resource.send(attr_name)).to eql("this is a string")
53
37
  expect {@resource.send(attr_name, 8675309)}.to raise_error(ArgumentError)
54
38
  end
55
-
56
- it "the String attribute for #{attr_name.to_s} is nillable" do
57
- @resource.send(attr_name, "this is a string")
58
- expect(@resource.send(attr_name)).to eql("this is a string")
59
- @resource.send(attr_name, nil)
60
- expect(@resource.send(attr_name)).to eql(nil)
61
- end
62
39
  end
63
40
 
64
41
  def resource_has_a_boolean_attribute(attr_name, opts={:defaults_to=>false})
@@ -212,10 +189,6 @@ describe Chef::Resource::Deploy do
212
189
  expect(@resource.symlink_before_migrate).to eq({"wtf?" => "wtf is going on"})
213
190
  end
214
191
 
215
- resource_has_a_hash_attribute :symlink_before_migrate
216
- resource_has_a_hash_attribute :symlinks
217
- resource_has_a_hash_attribute :additional_remotes
218
-
219
192
  resource_has_a_callback_attribute :before_migrate
220
193
  resource_has_a_callback_attribute :before_symlink
221
194
  resource_has_a_callback_attribute :before_restart
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.2.0.rc.1
4
+ version: 12.2.0.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-config