From 34721e27fda528ef66216905be781d896c20bae3 Mon Sep 17 00:00:00 2001 From: Tapan Sharma Date: Tue, 18 Jun 2024 11:24:07 +0100 Subject: [PATCH] Resolve undefined method `exists?' for File:Class --- Rakefile | 2 +- spec/zuora/api_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 7806316d..ab03a96a 100644 --- a/Rakefile +++ b/Rakefile @@ -44,7 +44,7 @@ namespace :doc do desc "Remove generated documenation" task :clean do - rm_r doc_destination if File.exists?(doc_destination) + rm_r doc_destination if File.exist?(doc_destination) end end diff --git a/spec/zuora/api_spec.rb b/spec/zuora/api_spec.rb index 4b8bbf6e..5247b947 100644 --- a/spec/zuora/api_spec.rb +++ b/spec/zuora/api_spec.rb @@ -9,7 +9,7 @@ end it "has readable WSDL" do - File.exists?(Zuora::Api::WSDL).should be + File.exist?(Zuora::Api::WSDL).should be end it "can be configured to use sandbox" do