Skip to content

Commit

Permalink
Use offical ruby/debug gem
Browse files Browse the repository at this point in the history
Pry is not maintaned anymore.

The debug gem some how calls `File.exist?` and we
expect that in elements definitions spec. Luckily we can
simply remove that, because we only need to stub `File.read`
for this spec.
  • Loading branch information
tvdeyen committed Jan 18, 2024
1 parent a46ffa8 commit dfac16b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ group :development, :test do
gem "bumpy"
gem "yard"
gem "redcarpet"
gem "pry-byebug"
gem "debug"
gem "listen"
gem "localeapp", "~> 3.0", require: false
gem "dotenv", "~> 2.2"
Expand Down
3 changes: 0 additions & 3 deletions spec/models/alchemy/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ module Alchemy
let(:yaml) { "- name: :symbol" }

before do
expect(File).to receive(:exist?).and_return(true)
expect(File).to receive(:read).and_return(yaml)
end

Expand All @@ -246,7 +245,6 @@ module Alchemy
let(:yaml) { "- default: 2017-12-24" }

before do
expect(File).to receive(:exist?).and_return(true)
expect(File).to receive(:read).and_return(yaml)
end

Expand All @@ -259,7 +257,6 @@ module Alchemy
let(:yaml) { "- format: !ruby/regexp '/\A[^@\s]+@([^@\s]+.)+[^@\s]+\z/'" }

before do
expect(File).to receive(:exist?).and_return(true)
expect(File).to receive(:read).and_return(yaml)
end

Expand Down

0 comments on commit dfac16b

Please sign in to comment.