We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 324bae2 + e22a48c commit 8fac9bfCopy full SHA for 8fac9bf
spec/money_spec.rb
@@ -369,15 +369,9 @@
369
end
370
371
372
- %w[cents pence].each do |units|
373
- describe "##{units}" do
374
- it "is a synonym of #fractional" do
375
- expectation = Money.new(0)
376
- def expectation.fractional
377
- "expectation"
378
- end
379
- expect(expectation.cents).to eq "expectation"
380
+ describe "#cents" do
+ it "is a synonym of #fractional" do
+ expect(Money.new(1_23).cents).to eq(1_23)
381
382
383
0 commit comments