Skip to content

Commit

Permalink
Fix decimal column value type in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurkov committed Apr 3, 2012
1 parent 93525e1 commit f4273d7
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1145,7 +1145,7 @@ class ::TestFraction < ActiveRecord::Base
tf.save!
tf.reload
end.should_not raise_error
tf.percent.should == 64.71
tf.percent.should == '64.71'.to_d
end

it 'should change virtual column type' do
Expand All @@ -1165,7 +1165,7 @@ class ::TestFraction < ActiveRecord::Base
tf.save!
tf.reload
end.should_not raise_error
tf.percent.should == 64.70588
tf.percent.should == '64.70588'.to_d
end
end

Expand Down

0 comments on commit f4273d7

Please sign in to comment.