diff options
Diffstat (limited to 'spec/graphql/resolvers/container_repository_tags_resolver_spec.rb')
-rw-r--r-- | spec/graphql/resolvers/container_repository_tags_resolver_spec.rb | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/spec/graphql/resolvers/container_repository_tags_resolver_spec.rb b/spec/graphql/resolvers/container_repository_tags_resolver_spec.rb index 3ed3fe76267..0408357e8f2 100644 --- a/spec/graphql/resolvers/container_repository_tags_resolver_spec.rb +++ b/spec/graphql/resolvers/container_repository_tags_resolver_spec.rb @@ -13,8 +13,13 @@ RSpec.describe Resolvers::ContainerRepositoryTagsResolver do describe '#resolve' do let(:resolver) do - resolve(described_class, ctx: { current_user: user }, obj: repository, args: args, - arg_style: :internal) + resolve( + described_class, + ctx: { current_user: user }, + obj: repository, + args: args, + arg_style: :internal + ) end before do @@ -25,7 +30,7 @@ RSpec.describe Resolvers::ContainerRepositoryTagsResolver do subject { resolver.map(&:name) } before do - stub_container_registry_tags(repository: repository.path, tags: %w(aaa bab bbb ccc 123), with_manifest: false) + stub_container_registry_tags(repository: repository.path, tags: %w[aaa bab bbb ccc 123], with_manifest: false) end context 'without sort' do @@ -37,19 +42,19 @@ RSpec.describe Resolvers::ContainerRepositoryTagsResolver do context "name_asc" do let(:args) { { sort: :name_asc } } - it { is_expected.to eq(%w(123 aaa bab bbb ccc)) } + it { is_expected.to eq(%w[123 aaa bab bbb ccc]) } end context "name_desc" do let(:args) { { sort: :name_desc } } - it { is_expected.to eq(%w(ccc bbb bab aaa 123)) } + it { is_expected.to eq(%w[ccc bbb bab aaa 123]) } end context 'filter by name' do let(:args) { { sort: :name_desc, name: 'b' } } - it { is_expected.to eq(%w(bbb bab)) } + it { is_expected.to eq(%w[bbb bab]) } end end end |