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

14 lines
257 B
Ruby
Raw Normal View History

2016-07-18 18:16:54 +02:00
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