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

View file

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