100% coverage on Value

This commit is contained in:
Josh Holtrop 2013-08-12 22:11:09 -04:00
parent 8d92534ed2
commit 245d8a4d2b

View File

@ -1,5 +1,11 @@
module Gnucash
describe Value do
describe '.zero' do
it 'creates a Value object with value 0' do
Value.zero.val.should == 0
end
end
it "raises an error when an unexpected string is given" do
expect { Value.new("1234") }.to raise_error /Unexpected value string/
end