summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaustubh-d <kausubh@clogeny.com>2013-07-19 21:01:29 -0700
committeradamedx <adamed@opscode.com>2013-07-23 10:36:15 -0700
commit75c5d3dcb7ea5b9f33709f0f00cbeb2c0ae5a45a (patch)
tree36ac2cabb7b9a6af294edfdd442f0c773903d928
parent49bfed9d968ce84382c719634719057e815870c5 (diff)
downloadchef-75c5d3dcb7ea5b9f33709f0f00cbeb2c0ae5a45a.tar.gz
using StringIO for stubbing as String#each is deprecated.
-rw-r--r--spec/unit/provider/ifconfig/aix_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/ifconfig/aix_spec.rb b/spec/unit/provider/ifconfig/aix_spec.rb
index b8755e2bed..ea96a5be61 100644
--- a/spec/unit/provider/ifconfig/aix_spec.rb
+++ b/spec/unit/provider/ifconfig/aix_spec.rb
@@ -50,7 +50,7 @@ IFCONFIG
describe "#load_current_resource" do
before do
status = double("Status", :exitstatus => 0)
- @provider.should_receive(:popen4).with("ifconfig -a").and_yield(@pid,@stdin,@ifconfig_output,@stderr).and_return(status)
+ @provider.should_receive(:popen4).with("ifconfig -a").and_yield(@pid,@stdin,StringIO.new(@ifconfig_output),@stderr).and_return(status)
@new_resource.device "en0"
end
it "should load given interface with attributes." do