diff options
| author | Luke Kanies <luke@madstop.com> | 2008-05-16 11:22:26 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-05-16 11:22:26 -0500 |
| commit | a02c6bbe7ccac05593c9e07e9f0215ab6ceda8ad (patch) | |
| tree | 1ef311b4a31ba1bc876fe4346c153cf2d4495346 | |
| parent | a1409d73b4bb8acbf5db2f8d7a244c2bca81db14 (diff) | |
| download | puppet-a02c6bbe7ccac05593c9e07e9f0215ab6ceda8ad.tar.gz puppet-a02c6bbe7ccac05593c9e07e9f0215ab6ceda8ad.tar.xz puppet-a02c6bbe7ccac05593c9e07e9f0215ab6ceda8ad.zip | |
Fixing a mock in the redhat interface test.
It mocked :exists? instead of :exist?, and my provider work
changed the method call because :exists? is going away in ruby.
| -rwxr-xr-x | spec/unit/provider/interface/redhat.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/interface/redhat.rb b/spec/unit/provider/interface/redhat.rb index 5a7a8dfcd..99ac50f01 100755 --- a/spec/unit/provider/interface/redhat.rb +++ b/spec/unit/provider/interface/redhat.rb @@ -9,12 +9,12 @@ provider_class = Puppet::Type.type(:interface).provider(:redhat) describe provider_class do it "should not be functional on systems without a network-scripts directory" do - FileTest.expects(:exists?).with("/etc/sysconfig/network-scripts").returns(false) + FileTest.expects(:exist?).with("/etc/sysconfig/network-scripts").returns(false) provider_class.should_not be_suitable end it "should be functional on systems with a network-scripts directory" do - FileTest.expects(:exists?).with("/etc/sysconfig/network-scripts").returns(true) + FileTest.expects(:exist?).with("/etc/sysconfig/network-scripts").returns(true) provider_class.should be_suitable end end |
