diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-08 12:09:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-08 12:09:42 +0000 |
commit | 403678e00406edc8094f087ec70e00aa29e49bef (patch) | |
tree | 447d6d4967e9a11895683b27e637a50bd9fc0602 /spec/models/ci/group_spec.rb | |
parent | f5050253469fc0961c02deec0e698ad62bdd9de5 (diff) | |
download | gitlab-ce-403678e00406edc8094f087ec70e00aa29e49bef.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/ci/group_spec.rb')
-rw-r--r-- | spec/models/ci/group_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/models/ci/group_spec.rb b/spec/models/ci/group_spec.rb index 5516a1a9c61..868382e3756 100644 --- a/spec/models/ci/group_spec.rb +++ b/spec/models/ci/group_spec.rb @@ -3,12 +3,14 @@ require 'spec_helper' describe Ci::Group do + let_it_be(:project) { create(:project) } + + let!(:jobs) { build_list(:ci_build, 1, :success, project: project) } + subject do - described_class.new('test', name: 'rspec', jobs: jobs) + described_class.new(project, 'test', name: 'rspec', jobs: jobs) end - let!(:jobs) { build_list(:ci_build, 1, :success) } - it { is_expected.to include_module(StaticModel) } it { is_expected.to respond_to(:stage) } |