Skip to content

Commit

Permalink
Add Rubocop comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nard-tech committed Jan 20, 2020
1 parent 724a83f commit aa12855
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/lib/annotate/annotate_models_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aa12855

Please sign in to comment.