Sha256: 1a8ced5799acff84f6e9a8159a87f0805e8e4bf7ad3542ff2362eefa72711e9a
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
require 'spec_helper' require 'roar_extensions' module RoarExtensions describe MoneyPresenter do let(:currency) { stub(:iso_code => "USD") } let(:money) { stub(:currency => currency, :cents => 100) } subject { MoneyPresenter.new(money) } it "has cents" do subject.to_hash['money']['cents'].should == 100 end it "has currency" do subject.to_hash['money']['currency'].should == "USD" end end end
Version data entries
4 entries across 4 versions & 1 rubygems