diff options
author | Theodore Nordsieck <theo@opscode.com> | 2013-07-23 16:46:32 -0700 |
---|---|---|
committer | Theodore Nordsieck <theo@opscode.com> | 2013-08-08 16:12:30 -0700 |
commit | 3b6d386867dde93e0a72a180f31940baa29fdc41 (patch) | |
tree | 6d514db640328991776703b2a7e67af4e5a08c77 /spec/unit/plugins/java_spec.rb | |
parent | 02b115bc7963d0a8913250b9e5191ffa4b896fb3 (diff) | |
download | ohai-3b6d386867dde93e0a72a180f31940baa29fdc41.tar.gz |
factored out per-spec RSpec into a helper method
Diffstat (limited to 'spec/unit/plugins/java_spec.rb')
-rw-r--r-- | spec/unit/plugins/java_spec.rb | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/spec/unit/plugins/java_spec.rb b/spec/unit/plugins/java_spec.rb index 826626d7..386f1a0d 100644 --- a/spec/unit/plugins/java_spec.rb +++ b/spec/unit/plugins/java_spec.rb @@ -236,21 +236,23 @@ expected = [{ "hotspot" => { "name" => "OpenJDK 64-Bit Server VM", "build" => "20.0-b12, mixed mode" }}}}, }] -describe Ohai::System, "cross platform data" do - before (:all) do - @opc = OhaiPluginCommon.new - @opc.set_path '/../path' - end +# describe Ohai::System, "cross platform data" do +# before (:all) do +# @opc = OhaiPluginCommon.new +# @opc.set_path '/../path' +# end - before (:each) do - @ohai = Ohai::System.new - end +# before (:each) do +# @ohai = Ohai::System.new +# end - expected.each do |e| - it "provides data when then platform is '#{e[:platform]}', the architecture is '#{e[:arch]}' and the environment is '#{e[:env]}'" do - @opc.set_env e[:platform], e[:arch], e[:env] - @ohai.require_plugin "java" - @opc.subsumes?(@ohai.data, e[:ohai]).should be_true - end - end -end +# expected.each do |e| +# it "provides data when the platform is '#{e[:platform]}', the architecture is '#{e[:arch]}' and the environment is '#{e[:env]}'" do +# @opc.set_env e[:platform], e[:arch], e[:env] +# @ohai.require_plugin "java" +# @opc.subsumes?(@ohai.data, e[:ohai]).should be_true +# end +# end +# end + +OhaiPluginCommon.new.check_expected( "java", expected ) |