Skip to content
Snippets Groups Projects
Commit 517815f4 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Fix gitlab_ci_yaml_processor specs

parent 29a7c679
Branches
Tags
1 merge request!1502Refactor Ci::Commit and Ci::Build to have all builds for same :sha on single page
Loading
@@ -17,6 +17,7 @@ module Ci
Loading
@@ -17,6 +17,7 @@ module Ci
expect(config_processor.builds_for_stage_and_ref(type, "master").size).to eq(1) expect(config_processor.builds_for_stage_and_ref(type, "master").size).to eq(1)
expect(config_processor.builds_for_stage_and_ref(type, "master").first).to eq({ expect(config_processor.builds_for_stage_and_ref(type, "master").first).to eq({
stage: "test", stage: "test",
stage_idx: 1,
except: nil, except: nil,
name: :rspec, name: :rspec,
only: nil, only: nil,
Loading
@@ -115,6 +116,7 @@ module Ci
Loading
@@ -115,6 +116,7 @@ module Ci
expect(config_processor.builds_for_stage_and_ref("test", "master").first).to eq({ expect(config_processor.builds_for_stage_and_ref("test", "master").first).to eq({
except: nil, except: nil,
stage: "test", stage: "test",
stage_idx: 1,
name: :rspec, name: :rspec,
only: nil, only: nil,
commands: "pwd\nrspec", commands: "pwd\nrspec",
Loading
@@ -141,6 +143,7 @@ module Ci
Loading
@@ -141,6 +143,7 @@ module Ci
expect(config_processor.builds_for_stage_and_ref("test", "master").first).to eq({ expect(config_processor.builds_for_stage_and_ref("test", "master").first).to eq({
except: nil, except: nil,
stage: "test", stage: "test",
stage_idx: 1,
name: :rspec, name: :rspec,
only: nil, only: nil,
commands: "pwd\nrspec", commands: "pwd\nrspec",
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment