Skip to content

Commit

Permalink
Add spec for Virtus::Coercion::Numeric.to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Apr 2, 2012
1 parent d25c4c9 commit b7c082e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/unit/virtus/coercion/numeric/class_methods/to_string_spec.rb
@@ -0,0 +1,10 @@
require 'spec_helper'

describe Virtus::Coercion::Numeric, '.to_string' do
subject { object.to_string(numeric) }

let(:object) { described_class }
let(:numeric) { Rational(2, 2) }

it { should eql('1') }
end

0 comments on commit b7c082e

Please sign in to comment.