Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-12-03 15:47:26 +0300
committerShinya Maeda <shinya@gitlab.com>2018-12-03 15:47:26 +0300
commitbec4740f30425aa7d0db30c7afa846a151091c2a (patch)
treebd1b4ea1fbbe95739c1defbe8f7424fb5bfdeb10 /spec/models/gpg_signature_spec.rb
parent328d1a93857852bc897b472b0eba57e9a977b133 (diff)
Fix the coding style
Diffstat (limited to 'spec/models/gpg_signature_spec.rb')
-rw-r--r--spec/models/gpg_signature_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/gpg_signature_spec.rb b/spec/models/gpg_signature_spec.rb
index f9237cff823..0a490a33b37 100644
--- a/spec/models/gpg_signature_spec.rb
+++ b/spec/models/gpg_signature_spec.rb
@@ -1,6 +1,8 @@
require 'rails_helper'
RSpec.describe GpgSignature do
+ it_behaves_like 'Unique enum values'
+
let(:commit_sha) { '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33' }
let!(:project) { create(:project, :repository, path: 'sample-project') }
let!(:commit) { create(:commit, project: project, sha: commit_sha) }
@@ -8,8 +10,6 @@ RSpec.describe GpgSignature do
let(:gpg_key) { create(:gpg_key) }
let(:gpg_key_subkey) { create(:gpg_key_subkey) }
- it_behaves_like 'Unique enum values'
-
describe 'associations' do
it { is_expected.to belong_to(:project) }
it { is_expected.to belong_to(:gpg_key) }