Fix some test by actually having balance in a test env

This commit is contained in:
Wout Schellaert 2018-12-13 20:08:37 +01:00
parent ac298f6869
commit dc29c1d897
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class User < ActiveRecord::Base
def balance
@balance || begin
if Rails.env.test?
nil
12345
else
headers = {
"Authorization" => "Token token=#{Rails.application.secrets.tab_api_key}",