Thank you all for all the responses. I'm using rspec-core-2.11.1, so that was the problem.
I updated it to ~> 3, and no longer complains about `File.exists?`. El lun, 17 mar 2025 a la(s) 6:48 p.m., Phil Pirozhkov ( [email protected]) escribió: > > > On Mon, Mar 17, 2025 at 10:51 PM Jesús Gómez <[email protected]> wrote: > >> Now rspec is failing for modern versions of Ruby (e.g. 3.3.5) because the >> method `File.exists?` doesn't exists. >> >> File `lib/rspec/core/ruby_project.rb` line 27 is trying to use it. >> > > What version of RSpec are you using? > > > https://github.com/rspec/rspec/blob/rspec-core-v3.13.3/rspec-core/lib/rspec/core/ruby_project.rb#L25 > > ascend_until { |path| File.exist?(File.join(path, dir)) } > > This is like this since RSpec 3.0 > https://github.com/rspec/rspec-core/commit/cedb4e133585ed5268b0bc61144f23232a7bdaaf, > a version that we highly recommend updating to. > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/rspec/CAAk5Ok8GRQJWvqfAQvHmNErJhqJXwqwmM7F%2BtQ6_EO9yWGx87A%40mail.gmail.com > <https://groups.google.com/d/msgid/rspec/CAAk5Ok8GRQJWvqfAQvHmNErJhqJXwqwmM7F%2BtQ6_EO9yWGx87A%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/rspec/CAO9z-97RyyVG02OQ5LaWiS2Pm82yuOkU8tBP4kBJWs2f1Ea8Ug%40mail.gmail.com.
