1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/test/models/wallet_test.rb
2016-07-21 16:32:53 +02:00

14 lines
257 B
Ruby

require 'test_helper'
class WalletTest < ActiveSupport::TestCase
test "default amount must be zero" do
w = Wallet.new
assert w.amount == 0
end
test 'should user present' do
w = Wallet.create
assert w.errors[:user].present?
end
end