spec/spec_helper.rb in ohai-0.5.0 vs spec/spec_helper.rb in ohai-0.5.2
- old
+ new
@@ -11,14 +11,9 @@
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'ohai'
Ohai::Config[:log_level] = :error
def it_should_check_from(plugin, attribute, from, value)
- it "should get the #{attribute} value from '#{from}'" do
- @ohai.should_receive(:from).with(from).and_return(value)
- @ohai._require_plugin(plugin)
- end
-
it "should set the #{attribute} to the value from '#{from}'" do
@ohai._require_plugin(plugin)
@ohai[attribute].should == value
end
end