Skip to content

Commit

Permalink
[ci] fix test case to create project which is used
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 6, 2018
1 parent 26e14f5 commit a1b30fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/spec/models/branch_package_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'rails_helper'

CONFIG['global_write_through'] = true

RSpec.describe BranchPackage, vcr: true do
let(:user) { create(:confirmed_user, login: 'tom') }
let(:home_project) { user.home_project }
Expand Down Expand Up @@ -57,6 +59,7 @@
context 'project without ImageTemplates attribute' do
context 'auto cleanup attribute' do
it 'is set to the default' do
leap_project
allow(Configuration).to receive(:cleanup_after_days).and_return(42)
branch_apache_package.branch
project = Project.find_by_name(user.branch_project_name('openSUSE_Leap'))
Expand Down

0 comments on commit a1b30fa

Please sign in to comment.