diff options
author | Theodore Nordsieck <theo@opscode.com> | 2013-08-21 11:00:19 -0700 |
---|---|---|
committer | Theodore Nordsieck <theo@opscode.com> | 2013-08-22 11:06:29 -0700 |
commit | ede15b31787b3b5249ed2b6d08bb98ef18929d2d (patch) | |
tree | 0856673b08d943c7a415eb19cf388127d6cea9bc | |
parent | 8171a336f256438e96af974d2bf124d0d93ea1f4 (diff) | |
download | ohai-ede15b31787b3b5249ed2b6d08bb98ef18929d2d.tar.gz |
changed variable name to not clobber existing variable
-rw-r--r-- | spec/unit/path/ohai_plugin_common.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/unit/path/ohai_plugin_common.rb b/spec/unit/path/ohai_plugin_common.rb index ff6de7fa..3cbd6dca 100644 --- a/spec/unit/path/ohai_plugin_common.rb +++ b/spec/unit/path/ohai_plugin_common.rb @@ -161,6 +161,8 @@ def subsumes?(source, test, path = [], &block) end end +require 'pry' + # for use in plugins shared_context "cross platform data" do shared_examples_for "a plugin" do |plugin_names, data, cmd_list| @@ -169,6 +171,7 @@ shared_context "cross platform data" do describe "when the platform is #{platform}" do e[:arch].each do |arch| describe "and the architecture is #{arch}" do + binding.pry e[:env].each do |env| describe "and the environment is #{env}" do path = OhaiPluginCommon.get_path @@ -205,7 +208,7 @@ shared_context "cross platform data" do enc = Yajl::Encoder subsumes?( @ohai.data, e[:ohai] ) do | path, source, test | - path_txt = path.map { |e| "[#{enc.encode( e )}]" }.join + path_txt = path.map { |p| "[#{enc.encode( p )}]" }.join source_txt = if source.nil? then "nil" else enc.encode( source ) end it "should set #{path_txt} to #{source_txt}" do source.should eq( test ) |