diff options
Diffstat (limited to 'spec/ruby/library/net-ftp/debug_mode_spec.rb')
| -rw-r--r-- | spec/ruby/library/net-ftp/debug_mode_spec.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/ruby/library/net-ftp/debug_mode_spec.rb b/spec/ruby/library/net-ftp/debug_mode_spec.rb new file mode 100644 index 0000000000..28765b9d1c --- /dev/null +++ b/spec/ruby/library/net-ftp/debug_mode_spec.rb @@ -0,0 +1,26 @@ +require_relative '../../spec_helper' + +ruby_version_is ""..."4.1" do + require_relative 'spec_helper' + + describe "Net::FTP#debug_mode" do + it "returns true when self is in debug mode" do + ftp = Net::FTP.new + ftp.debug_mode.should == false + + ftp.debug_mode = true + ftp.debug_mode.should == true + end + end + + describe "Net::FTP#debug_mode=" do + it "sets self into debug mode when passed true" do + ftp = Net::FTP.new + ftp.debug_mode = true + ftp.debug_mode.should == true + + ftp.debug_mode = false + ftp.debug_mode.should == false + end + end +end |
