Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions spec/money_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,9 @@
end
end

%w[cents pence].each do |units|
describe "##{units}" do
it "is a synonym of #fractional" do
expectation = Money.new(0)
def expectation.fractional
"expectation"
end
expect(expectation.cents).to eq "expectation"
end
describe "#cents" do
it "is a synonym of #fractional" do
expect(Money.new(1_23).cents).to eq(1_23)
end
end

Expand Down