diff --git a/Gemfile b/Gemfile index 38c3b8f..c899484 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" gemspec -RAILS_VERSION = ENV.fetch('RAILS_VERSION', '4.1.0') +RAILS_VERSION = ENV.fetch('RAILS_VERSION', '4.1.1') gem "activesupport", RAILS_VERSION gem "actionpack", RAILS_VERSION gem "actionmailer", RAILS_VERSION diff --git a/spec/dossier/formatter_spec.rb b/spec/dossier/formatter_spec.rb index 721f908..4a2d353 100644 --- a/spec/dossier/formatter_spec.rb +++ b/spec/dossier/formatter_spec.rb @@ -68,7 +68,9 @@ 10_000 => '$10,000.00', 10_000.00 => '$10,000.00', 1_000_000_000.000 => '$1,000,000,000.00', - '12345.6788' => '$12,345.68' + '12345.6788' => '$12,345.68', + 0.01 => '$0.01', + -0.01 => '-$0.01' }.each { |base, formatted| it "formats #{base} as #{formatted}" do expect(formatter.number_to_dollars(base)).to eq formatted