chef-vault-testfixtures 0.5.1 → 0.5.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb82257127173edcb4dfe569cfd721c0e3af3923
4
- data.tar.gz: 1eca1e10f38dbc76f559a98ccbb6b9c7e751629c
3
+ metadata.gz: 3783e0e9855e83940e28dde3c1c306d4a778deac
4
+ data.tar.gz: faf5bae370142aa9f3e215bbcdcecbee27e850ed
5
5
  SHA512:
6
- metadata.gz: c6fb5f77868845d5d9a0c8bd5faf5ffb4e929e03f23e8b13799b5872d59e5b083d2daacbdd757609e86606d9fef5743247a587a18f9f289491a310a52bcf631b
7
- data.tar.gz: 81747746d5c8ea6996227ecad1f6681cfa70d9a2508dd7e6c172cc6a8f7862c49f07276f6234e938e7d31029e0e7571ae6c5689d84fcc648ebacc041454fa629
6
+ metadata.gz: b3d6df174763af6799db37da183bb17da71fe9e4936504f1e6559d9eff7f2fae437659c28fae657e78469b4710a65dd2bf5440dee33edec875e794fbdbaac039
7
+ data.tar.gz: f54b88800adf59f88f7967013a259f9c738d63eff162e3f0af87d8d974c15fbb1e99657d576edd82c03b10c4d24f42b148aa2f0d5a650952808028544f754617
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: chef-vault-testfixtures 0.5.1.20160204143606 ruby lib
2
+ # stub: chef-vault-testfixtures 0.5.2.20160208102442 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "chef-vault-testfixtures"
6
- s.version = "0.5.1.20160204143606"
6
+ s.version = "0.5.2.20160208102442"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["James FitzGibbon"]
11
- s.date = "2016-02-04"
11
+ s.date = "2016-02-08"
12
12
  s.description = "chef-vault-testfixtures provides an RSpec shared context that\nstubs access to chef-vault encrypted data bags using the same\nfallback mechanism as the `chef_vault_item` helper from the\n[chef-vault cookbook](https://supermarket.chef.io/cookbooks/chef-vault)"
13
13
  s.email = ["james.i.fitzgibbon@nordstrom.com"]
14
14
  s.extra_rdoc_files = ["History.md", "Manifest.txt", "README.md"]
@@ -11,7 +11,7 @@ class ChefVault
11
11
  # dynamic RSpec contexts for cookbooks that use chef-vault
12
12
  class TestFixtures
13
13
  # the version of the gem
14
- VERSION = "0.5.1"
14
+ VERSION = "0.5.2"
15
15
 
16
16
  # dynamically creates a memoized RSpec shared context
17
17
  # that when included into an example group will stub
@@ -95,6 +95,10 @@ class ChefVault
95
95
  # stub ChefVault and Chef::DataBag to return the doubles
96
96
  # via both symbol and string forms of the data bag name
97
97
  [vault, vault.to_sym].each do |dbname|
98
+ allow(ChefVault::Item).to(
99
+ receive(:vault?).with(dbname, item).and_return(true)
100
+ )
101
+
98
102
  allow(ChefVault::Item).to(
99
103
  receive(:load)
100
104
  .with(dbname, item)
@@ -129,9 +133,7 @@ class ChefVault
129
133
 
130
134
  [vault, vault.to_sym].each do |dbname|
131
135
  allow(Chef::DataBagItem).to(
132
- receive(:load)
133
- .with(dbname, item)
134
- .and_return(dbi)
136
+ receive(:load).with(dbname, item).and_return(dbi)
135
137
  )
136
138
  end
137
139
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-vault-testfixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James FitzGibbon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec