summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-06-13 09:14:23 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-06-13 09:58:35 +0200
commit11c0d022835cafc1d52e18580d0e1523a83bbdd2 (patch)
tree4c3afc2fda74c7c0b092117a84cb4285b9ed56e6 /spec
parent7c8f3b0cfc38838755a21641e402b3ef7a1f9d0b (diff)
downloadgitlab-ce-11c0d022835cafc1d52e18580d0e1523a83bbdd2.tar.gz
Simplify ci config node factory
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/ci/config/node/factory_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/gitlab/ci/config/node/factory_spec.rb b/spec/lib/gitlab/ci/config/node/factory_spec.rb
index 73d760d1b0a..d681aa32456 100644
--- a/spec/lib/gitlab/ci/config/node/factory_spec.rb
+++ b/spec/lib/gitlab/ci/config/node/factory_spec.rb
@@ -8,7 +8,7 @@ describe Gitlab::Ci::Config::Node::Factory do
context 'when value setting value' do
it 'creates entry with valid value' do
entry = factory
- .with_value(['ls', 'pwd'])
+ .with(value: ['ls', 'pwd'])
.create!
expect(entry.value).to eq "ls\npwd"
@@ -17,8 +17,8 @@ describe Gitlab::Ci::Config::Node::Factory do
context 'when setting description' do
it 'creates entry with description' do
entry = factory
- .with_value(['ls', 'pwd'])
- .with_description('test description')
+ .with(value: ['ls', 'pwd'])
+ .with(description: 'test description')
.create!
expect(entry.value).to eq "ls\npwd"
@@ -38,8 +38,8 @@ describe Gitlab::Ci::Config::Node::Factory do
context 'when creating a null entry' do
it 'creates a null entry' do
entry = factory
- .with_value(nil)
- .null_node
+ .with(value: nil)
+ .nullify!
.create!
expect(entry).to be_an_instance_of Gitlab::Ci::Config::Node::Null