Fix some test by actually having balance in a test env
This commit is contained in:
parent
ac298f6869
commit
dc29c1d897
1 changed files with 1 additions and 1 deletions
|
@ -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}",
|
||||
|
|
Loading…
Reference in a new issue