fix wording

This commit is contained in:
Shinya Maeda 2018-12-03 22:01:30 +09:00
parent bec4740f30
commit 45a5ed6d02
23 changed files with 23 additions and 23 deletions

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe Ci::BuildMetadata do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
set(:user) { create(:user) }
set(:group) { create(:group, :access_requestable) }

View file

@ -3,7 +3,7 @@ require 'spec_helper'
describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
include ExclusiveLeaseHelpers
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
set(:build) { create(:ci_build, :running) }
let(:chunk_index) { 0 }

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe Ci::JobArtifact do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
let(:artifact) { create(:ci_job_artifact, :archive) }

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe Ci::Pipeline, :mailer do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
let(:user) { create(:user) }
set(:project) { create(:project) }

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe Ci::Runner do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
describe 'validation' do
it { is_expected.to validate_presence_of(:access_level) }

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe Ci::Stage, :models do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
let(:stage) { create(:ci_stage_entity) }

View file

@ -1,7 +1,7 @@
require 'rails_helper'
describe Clusters::Applications::Ingress do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
let(:ingress) { create(:clusters_applications_ingress) }

View file

@ -3,7 +3,7 @@
require 'spec_helper'
describe Clusters::Cluster do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
it { is_expected.to belong_to(:user) }
it { is_expected.to have_many(:cluster_projects) }

View file

@ -4,7 +4,7 @@ describe Clusters::Platforms::Kubernetes, :use_clean_rails_memory_store_caching
include KubernetesHelpers
include ReactiveCachingHelpers
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
it { is_expected.to belong_to(:cluster) }
it { is_expected.to be_kind_of(Gitlab::Kubernetes) }

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe CommitStatus do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
set(:project) { create(:project, :repository) }

View file

@ -16,7 +16,7 @@ describe Deployment do
it { is_expected.to validate_presence_of(:ref) }
it { is_expected.to validate_presence_of(:sha) }
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
describe '#scheduled_actions' do
subject { deployment.scheduled_actions }

View file

@ -1,7 +1,7 @@
require 'rails_helper'
RSpec.describe GpgSignature do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
let(:commit_sha) { '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33' }
let!(:project) { create(:project, :repository, path: 'sample-project') }

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe InternalId do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
let(:project) { create(:project) }
let(:usage) { :issues }

View file

@ -1,7 +1,7 @@
require 'rails_helper'
describe List do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
describe 'relationships' do
it { is_expected.to belong_to(:board) }

View file

@ -1,7 +1,7 @@
require 'rails_helper'
RSpec.describe NotificationSetting do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
describe "Associations" do
it { is_expected.to belong_to(:user) }

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe ProjectAutoDevops do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
set(:project) { build(:project) }

View file

@ -4,7 +4,7 @@ describe Project do
include ProjectForksHelper
include GitHelpers
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
describe 'associations' do
it { is_expected.to belong_to(:group) }

View file

@ -3,7 +3,7 @@
require 'spec_helper'
describe PrometheusMetric do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
subject { build(:prometheus_metric) }
let(:other_project) { build(:project) }

View file

@ -1,7 +1,7 @@
require 'spec_helper'
describe PushEventPayload do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
describe 'saving payloads' do
it 'does not allow commit messages longer than 70 characters' do

View file

@ -3,7 +3,7 @@
require 'rails_helper'
RSpec.describe ResourceLabelEvent, type: :model do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
subject { build(:resource_label_event, issue: issue) }
let(:issue) { create(:issue) }

View file

@ -1,7 +1,7 @@
require 'rails_helper'
describe UserCallout do
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
let!(:callout) { create(:user_callout) }

View file

@ -4,7 +4,7 @@ describe User do
include ProjectForksHelper
include TermsHelper
it_behaves_like 'Unique enum values'
it_behaves_like 'having unique enum values'
describe 'modules' do
subject { described_class }

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
shared_examples 'Unique enum values' do
shared_examples 'having unique enum values' do
described_class.defined_enums.each do |name, enum|
it "has unique values in #{name.inspect}" do
duplicated = enum.group_by(&:last).select { |key, value| value.size > 1 }