Skip to content

Commit 44e08e9

Browse files
authored
Merge pull request #49 from olleolleolle/avoid-deprecation
Prefer File.exist? to avoid deprecation
2 parents b95f61b + a7781a5 commit 44e08e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rspec-activemodel-mocks.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
2727
s.require_path = "lib"
2828

2929
private_key = File.expand_path('~/.gem/rspec-gem-private_key.pem')
30-
if File.exists?(private_key)
30+
if File.exist?(private_key)
3131
s.signing_key = private_key
3232
s.cert_chain = [File.expand_path('~/.gem/rspec-gem-public_cert.pem')]
3333
end

0 commit comments

Comments
 (0)