summaryrefslogtreecommitdiff
path: root/spec/lib/container_registry
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-04 11:56:32 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-04 11:56:32 +0200
commit97c6cf59b361a0fe1b22cc999a2b2dd64b0a30f3 (patch)
tree0e9e97ea1e1af02ae179d9cac220e7cd501fc1e4 /spec/lib/container_registry
parent7cf91f7b78225957d8b79e96f7d0080cdd15c0cd (diff)
downloadgitlab-ce-97c6cf59b361a0fe1b22cc999a2b2dd64b0a30f3.tar.gz
Swap method names in containe registry path class
Diffstat (limited to 'spec/lib/container_registry')
-rw-r--r--spec/lib/container_registry/path_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/lib/container_registry/path_spec.rb b/spec/lib/container_registry/path_spec.rb
index 825c61beeb3..b9c4572c269 100644
--- a/spec/lib/container_registry/path_spec.rb
+++ b/spec/lib/container_registry/path_spec.rb
@@ -3,22 +3,22 @@ require 'spec_helper'
describe ContainerRegistry::Path do
subject { described_class.new(path) }
- describe '#nodes' do
+ describe '#components' do
let(:path) { 'path/to/some/project' }
- it 'splits elements by a forward slash' do
- expect(subject.nodes).to eq %w[path to some project]
+ it 'splits components by a forward slash' do
+ expect(subject.components).to eq %w[path to some project]
end
end
- describe '#components' do
+ describe '#nodes' do
context 'when repository path is valid' do
let(:path) { 'path/to/some/project' }
- it 'return all project-like components in reverse order' do
- expect(subject.components).to eq %w[path/to/some/project
- path/to/some
- path/to]
+ it 'return all project path like node in reverse order' do
+ expect(subject.nodes).to eq %w[path/to/some/project
+ path/to/some
+ path/to]
end
end
@@ -26,7 +26,7 @@ describe ContainerRegistry::Path do
let(:path) { '' }
it 'rasises en error' do
- expect { subject.components }
+ expect { subject.nodes }
.to raise_error described_class::InvalidRegistryPathError
end
end