Commit 6de0eb03 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix build class tests for authentication token

parent 7425070a
...@@ -1925,7 +1925,7 @@ describe Ci::Build do ...@@ -1925,7 +1925,7 @@ describe Ci::Build do
context 'when token is empty' do context 'when token is empty' do
before do before do
build.token = nil build.update_columns(token: nil, token_encrypted: nil)
end end
it { is_expected.to be_nil} it { is_expected.to be_nil}
...@@ -2141,7 +2141,7 @@ describe Ci::Build do ...@@ -2141,7 +2141,7 @@ describe Ci::Build do
end end
before do before do
build.token = 'my-token' build.set_token('my-token')
build.yaml_variables = [] build.yaml_variables = []
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment