Skip to content

Commit 78dabe7

Browse files
committed
Fix Rubocop warnings
1 parent 4016e2f commit 78dabe7

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.rubocop.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ inherit_from:
77
- .rubocop_todo.yml
88

99
require:
10-
- rubocop-md
1110
- rubocop-packaging
11+
12+
plugins:
13+
- rubocop-md
1214
- rubocop-performance
1315
- rubocop-rake
1416
- rubocop-rspec
@@ -97,7 +99,9 @@ Style/DateTime:
9799
Enabled: false
98100
Style/MissingRespondToMissing:
99101
Enabled: false
100-
Naming/PredicateName:
102+
Naming/PredicatePrefix:
103+
Enabled: false
104+
Naming/PredicateMethod:
101105
Enabled: false
102106
Security/YAMLLoad:
103107
Enabled: false

spec/dynamoid/adapter_plugin/aws_sdk_v3_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ def dynamo_request(table_name, conditions = [], options = {})
10231023
it_behaves_like 'range queries'
10241024

10251025
describe 'query' do
1026-
include_examples 'correctly handling limits', :query
1026+
it_behaves_like 'correctly handling limits', :query
10271027
end
10281028

10291029
# Scan

spec/dynamoid/fields_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def self.load(val)
462462
end
463463

464464
it 'writes an attribute with an alias' do
465-
skip "should be fixed"
465+
skip 'should be fixed'
466466
address[:CityName] = 'Chicago'
467467
expect(address.city).to eq 'Chicago'
468468
end
@@ -514,14 +514,13 @@ def self.load(val)
514514
let(:address) { Address.create(deliverable: true) }
515515
let(:original_id) { address.id }
516516

517-
518517
it 'reads a written attribute' do
519518
address.city = 'Chicago'
520519
expect(address.read_attribute(:city)).to eq 'Chicago'
521520
end
522521

523522
it 'reads a written attribute with the alias' do
524-
skip "should be fixed"
523+
skip 'should be fixed'
525524
address.write_attribute(:city, 'Chicago')
526525
expect(address[:CityName]).to eq 'Chicago'
527526
end

0 commit comments

Comments
 (0)