diff options
author | Jesse Campbell <hikeit@gmail.com> | 2013-02-18 12:18:50 -0500 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-02-26 11:11:44 -0800 |
commit | 6f6fff817866e1fb5ab3c90862bfaa627b5378fd (patch) | |
tree | 582c032fc5452da4f9db933cb15c2fa686e20a48 /spec/unit/provider | |
parent | 8dcd04c05f57ca3f89893d0460fb867f2073df57 (diff) | |
download | chef-6f6fff817866e1fb5ab3c90862bfaa627b5378fd.tar.gz |
some cleanup utilizing the refactored RemoteFile::FTP
Diffstat (limited to 'spec/unit/provider')
-rw-r--r-- | spec/unit/provider/remote_file/ftp_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/provider/remote_file/ftp_spec.rb b/spec/unit/provider/remote_file/ftp_spec.rb index 368a7346c4..03ef9424dd 100644 --- a/spec/unit/provider/remote_file/ftp_spec.rb +++ b/spec/unit/provider/remote_file/ftp_spec.rb @@ -36,22 +36,22 @@ describe Chef::Provider::RemoteFile::FTP, "fetch" do describe "when parsing the uri" do it "throws an argument exception when no path is given" do @uri.path = "" - lambda { Chef::Provider::RemoteFile::FTP.fetch(@uri, false).close! }.should raise_error(ArgumentError) + lambda { Chef::Provider::RemoteFile::FTP.new(@uri, false) }.should raise_error(ArgumentError) end it "throws an argument exception when only a / is given" do @uri.path = "/" - lambda { Chef::Provider::RemoteFile::FTP.fetch(@uri, false).close! }.should raise_error(ArgumentError) + lambda { Chef::Provider::RemoteFile::FTP.new(@uri, false) }.should raise_error(ArgumentError) end it "throws an argument exception when no filename is given" do @uri.path = "/the/whole/path/" - lambda { Chef::Provider::RemoteFile::FTP.fetch(@uri, false).close! }.should raise_error(ArgumentError) + lambda { Chef::Provider::RemoteFile::FTP.new(@uri, false) }.should raise_error(ArgumentError) end it "throws an argument exception when the typecode is invalid" do @uri.typecode = "d" - lambda { Chef::Provider::RemoteFile::FTP.fetch(@uri, false).close! }.should raise_error(ArgumentError) + lambda { Chef::Provider::RemoteFile::FTP.new(@uri, false) }.should raise_error(ArgumentError) end end |