summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/ftp/last_response_code_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/net/ftp/last_response_code_spec.rb')
-rw-r--r--spec/ruby/library/net/ftp/last_response_code_spec.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/spec/ruby/library/net/ftp/last_response_code_spec.rb b/spec/ruby/library/net/ftp/last_response_code_spec.rb
index 3eb20f7ad8..86f2b9a695 100644
--- a/spec/ruby/library/net/ftp/last_response_code_spec.rb
+++ b/spec/ruby/library/net/ftp/last_response_code_spec.rb
@@ -1,8 +1,11 @@
require_relative '../../../spec_helper'
-require_relative 'spec_helper'
-require_relative 'shared/last_response_code'
-require_relative 'fixtures/server'
-describe "Net::FTP#last_response_code" do
- it_behaves_like :net_ftp_last_response_code, :last_response_code
+ruby_version_is ""..."3.1" do
+ require_relative 'spec_helper'
+ require_relative 'shared/last_response_code'
+ require_relative 'fixtures/server'
+
+ describe "Net::FTP#last_response_code" do
+ it_behaves_like :net_ftp_last_response_code, :last_response_code
+ end
end