mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
14 lines
257 B
Ruby
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
|