spec/en_spec.rb in papla-0.0.5 vs spec/en_spec.rb in papla-0.1.0
- old
+ new
@@ -234,6 +234,13 @@
it 'properly handles float precision imperfections' do
subject[111_111.2].should eq('One hundred eleven thousand one hundred eleven 20/100')
end
end
+
+ describe 'money' do
+ it 'concatenates dollars, cents and currency' do
+ discounted_price = Money.new(9999, 'PLN')
+ Papla[discounted_price].should eq('Ninety nine 99/100 PLN')
+ end
+ end
end