summaryrefslogtreecommitdiff
path: root/spec/unit/run_context
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-08-01 12:29:12 -0700
committerdanielsdeleo <dan@opscode.com>2013-08-02 09:29:05 -0700
commite4fd4f0e00bc64abb5acf6517593063e2666ea7e (patch)
treef666cde81ea63c59dae13d9361ac8c1684aadec9 /spec/unit/run_context
parentf3262fc1d1ba12bf31de6dff421c8e77d6692bc7 (diff)
downloadchef-e4fd4f0e00bc64abb5acf6517593063e2666ea7e.tar.gz
Add methods to query for template/file existence in run context
- Convenience methods added to CookbookVersion to query if a cookbook file or template is available for a given node in that cookbook - Convenience methods added to RunContext to query the existence of cookbook files or templates
Diffstat (limited to 'spec/unit/run_context')
-rw-r--r--spec/unit/run_context/cookbook_compiler_spec.rb18
1 files changed, 1 insertions, 17 deletions
diff --git a/spec/unit/run_context/cookbook_compiler_spec.rb b/spec/unit/run_context/cookbook_compiler_spec.rb
index 0c5e568a13..fe6bef5618 100644
--- a/spec/unit/run_context/cookbook_compiler_spec.rb
+++ b/spec/unit/run_context/cookbook_compiler_spec.rb
@@ -17,23 +17,7 @@
#
require 'spec_helper'
-
-# Keeps track of what file got loaded in what order.
-module LibraryLoadOrder
- extend self
-
- def load_order
- @load_order ||= []
- end
-
- def reset!
- @load_order = nil
- end
-
- def record(file)
- load_order << file
- end
-end
+require 'support/lib/library_load_order'
# These tests rely on fixture data in spec/data/run_context/cookbooks.
#