Class: ChefSpec::Stubs::DataBagItemRegistry
- Defined in:
- lib/chefspec/stubs/data_bag_item_registry.rb
Instance Attribute Summary
Attributes inherited from Registry
Instance Method Summary collapse
Methods inherited from Registry
#initialize, #register, #reset!
Constructor Details
This class inherits a constructor from ChefSpec::Stubs::Registry
Instance Method Details
#stub_for(bag, id) ⇒ Object
6 7 8 9 10 |
# File 'lib/chefspec/stubs/data_bag_item_registry.rb', line 6 def stub_for(bag, id) @stubs.find do |stub| stub.bag.to_s == bag.to_s && stub.id === id end end |