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 | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/spec/ruby/library/net/ftp/debug_mode_spec.rb b/spec/ruby/library/net/ftp/debug_mode_spec.rb index f49da55ed1..46d207bbea 100644 --- a/spec/ruby/library/net/ftp/debug_mode_spec.rb +++ b/spec/ruby/library/net/ftp/debug_mode_spec.rb @@ -1,23 +1,26 @@ require_relative '../../../spec_helper' -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 be_false +ruby_version_is ""..."3.1" do + require_relative 'spec_helper' - ftp.debug_mode = true - ftp.debug_mode.should be_true + describe "Net::FTP#debug_mode" do + it "returns true when self is in debug mode" do + ftp = Net::FTP.new + ftp.debug_mode.should be_false + + ftp.debug_mode = true + ftp.debug_mode.should be_true + end 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 be_true + 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 be_true - ftp.debug_mode = false - ftp.debug_mode.should be_false + ftp.debug_mode = false + ftp.debug_mode.should be_false + end end end |
