From aa128557a3cec6a1788f9ad3cac47239109d64d9 Mon Sep 17 00:00:00 2001 From: Shu Fujita Date: Tue, 21 Jan 2020 02:55:22 +0900 Subject: [PATCH] Add Rubocop comments --- spec/lib/annotate/annotate_models_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/lib/annotate/annotate_models_spec.rb b/spec/lib/annotate/annotate_models_spec.rb index 7ffd145e0..29652fc47 100644 --- a/spec/lib/annotate/annotate_models_spec.rb +++ b/spec/lib/annotate/annotate_models_spec.rb @@ -175,7 +175,7 @@ def mock_column(name, type, options = {}) end end - describe '.get_schema_info' do + describe '.get_schema_info' do # rubocop:disable Metrics/BlockLength subject do AnnotateModels.get_schema_info(klass, header) end @@ -192,7 +192,7 @@ def mock_column(name, type, options = {}) [] end - context 'when header is "Schema Info"' do + context 'when header is "Schema Info"' do # rubocop:disable Metrics/BlockLength let :header do 'Schema Info' end @@ -286,8 +286,8 @@ def mock_column(name, type, options = {}) end end - context 'when the primary key is specified' do - context 'when the primary_key is :id' do + context 'when the primary key is specified' do # rubocop:disable Metrics/BlockLength + context 'when the primary_key is :id' do # rubocop:disable Metrics/BlockLength let :primary_key do :id end