summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net-ftp/debug_mode_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/net-ftp/debug_mode_spec.rb')
-rw-r--r--spec/ruby/library/net-ftp/debug_mode_spec.rb33
1 files changed, 15 insertions, 18 deletions
diff --git a/spec/ruby/library/net-ftp/debug_mode_spec.rb b/spec/ruby/library/net-ftp/debug_mode_spec.rb
index 4cb96c6a35..f2ef53c089 100644
--- a/spec/ruby/library/net-ftp/debug_mode_spec.rb
+++ b/spec/ruby/library/net-ftp/debug_mode_spec.rb
@@ -1,26 +1,23 @@
require_relative '../../spec_helper'
+require_relative 'spec_helper'
-ruby_version_is ""..."3.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 be_false
- 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
+ ftp.debug_mode = true
+ ftp.debug_mode.should be_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 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
- end
+ ftp.debug_mode = false
+ ftp.debug_mode.should be_false
end
end