Skip to content

Commit 8fac9bf

Browse files
authored
Merge pull request #1152 from sunny/remove-spec-for-pence
Specs: Remove spec for Money#pence which doesn’t exist
2 parents 324bae2 + e22a48c commit 8fac9bf

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

spec/money_spec.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -369,15 +369,9 @@
369369
end
370370
end
371371

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-
end
372+
describe "#cents" do
373+
it "is a synonym of #fractional" do
374+
expect(Money.new(1_23).cents).to eq(1_23)
381375
end
382376
end
383377

0 commit comments

Comments
 (0)