Commit 48a59c1a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Rename BeforeScript to Script in new Ci config

parent 5065612a
...@@ -3,7 +3,7 @@ module Gitlab ...@@ -3,7 +3,7 @@ module Gitlab
class Config class Config
module Node module Node
class Global < Entry class Global < Entry
add_node :before_script, BeforeScript add_node :before_script, Script
end end
end end
end end
......
...@@ -2,7 +2,7 @@ module Gitlab ...@@ -2,7 +2,7 @@ module Gitlab
module Ci module Ci
class Config class Config
module Node module Node
class BeforeScript < Entry class Script < Entry
include ValidationHelpers include ValidationHelpers
def description def description
......
...@@ -31,7 +31,7 @@ describe Gitlab::Ci::Config::Node::Global do ...@@ -31,7 +31,7 @@ describe Gitlab::Ci::Config::Node::Global do
it 'creates node object using valid class' do it 'creates node object using valid class' do
expect(global.nodes.first) expect(global.nodes.first)
.to be_an_instance_of Gitlab::Ci::Config::Node::BeforeScript .to be_an_instance_of Gitlab::Ci::Config::Node::Script
end end
end end
......
require 'spec_helper' require 'spec_helper'
describe Gitlab::Ci::Config::Node::BeforeScript do describe Gitlab::Ci::Config::Node::Script do
let(:entry) { described_class.new(value, double)} let(:entry) { described_class.new(value, double)}
before { entry.validate! } before { entry.validate! }
......
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