Skip to content

Commit 288b6b6

Browse files
committed
fix test to make it run in Ruby 3.4
1 parent fb4c006 commit 288b6b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spec/currency/heuristics_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
describe Money::Currency::Heuristics do
22
describe "#analyze_string" do
3-
let(:it) { Money::Currency }
4-
53
it "it raises deprecation error" do
6-
expect{ it.analyze('123') }.to raise_error(StandardError, 'Heuristics deprecated, add `gem "money-heuristics"` to Gemfile')
4+
expect { Money::Currency.analyze('123') }.to raise_error(StandardError, 'Heuristics deprecated, add `gem "money-heuristics"` to Gemfile')
75
end
86
end
97
end

0 commit comments

Comments
 (0)