diff options
Diffstat (limited to 'spec/lib/bulk_imports/projects/stage_spec.rb')
-rw-r--r-- | spec/lib/bulk_imports/projects/stage_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/lib/bulk_imports/projects/stage_spec.rb b/spec/lib/bulk_imports/projects/stage_spec.rb index 61f1be1a35d..57f63e8f9fb 100644 --- a/spec/lib/bulk_imports/projects/stage_spec.rb +++ b/spec/lib/bulk_imports/projects/stage_spec.rb @@ -13,9 +13,15 @@ RSpec.describe BulkImports::Projects::Stage do ] end - describe '.pipelines' do + subject do + bulk_import = build(:bulk_import) + + described_class.new(bulk_import) + end + + describe '#pipelines' do it 'list all the pipelines with their stage number, ordered by stage' do - expect(described_class.pipelines).to eq(pipelines) + expect(subject.pipelines).to eq(pipelines) end end end |