Skip to content

Commit 9b5886b

Browse files
committed
Update to rspec 3 from 2 to resolve exists error
To resolve the following error: rspec-core-2.14.6/lib/rspec/core/ruby_project.rb:27:in `block in find_first_parent_containing': undefined method `exists?' for class File (NoMethodError) ascend_until {|path| File.exists?(File.join(path, dir))} ^^^^^^^^ Did you mean? exist? I ran bundle update rspec and updated the spec_helper.rb file to use the new syntax for color (from `config.color_enabled` to `config.color`) and this resolved the error. There are still many deprecation warnings which will need to be resolved in the future, but the tests are now running/passing.
1 parent d4c3c03 commit 9b5886b

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

Gemfile.lock

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@ GEM
33
specs:
44
asciidoctor (2.0.17)
55
concurrent-ruby (1.1.10)
6-
diff-lcs (1.2.4)
6+
diff-lcs (1.6.0)
77
mini_portile2 (2.8.8)
88
nokogiri (1.18.3)
99
mini_portile2 (~> 2.8.2)
1010
racc (~> 1.4)
1111
racc (1.8.1)
12-
rspec (2.14.1)
13-
rspec-core (~> 2.14.0)
14-
rspec-expectations (~> 2.14.0)
15-
rspec-mocks (~> 2.14.0)
16-
rspec-core (2.14.6)
17-
rspec-expectations (2.14.3)
18-
diff-lcs (>= 1.1.3, < 2.0)
19-
rspec-mocks (2.14.3)
12+
rspec (3.13.0)
13+
rspec-core (~> 3.13.0)
14+
rspec-expectations (~> 3.13.0)
15+
rspec-mocks (~> 3.13.0)
16+
rspec-core (3.13.3)
17+
rspec-support (~> 3.13.0)
18+
rspec-expectations (3.13.3)
19+
diff-lcs (>= 1.2.0, < 2.0)
20+
rspec-support (~> 3.13.0)
21+
rspec-mocks (3.13.2)
22+
diff-lcs (>= 1.2.0, < 2.0)
23+
rspec-support (~> 3.13.0)
24+
rspec-support (3.13.2)
2025
tilt (1.4.1)
2126

2227
PLATFORMS

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Bundler.require(:test)
88

99
RSpec.configure do |config|
10-
config.color_enabled = true
10+
config.color = true
1111
config.order = "random"
1212
end
1313

0 commit comments

Comments
 (0)