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