diff --git a/.rubocop_rspec.yml b/.rubocop_rspec.yml index a950e59e..3025e4a0 100644 --- a/.rubocop_rspec.yml +++ b/.rubocop_rspec.yml @@ -31,6 +31,9 @@ RSpec/NestedGroups: RSpec/ExpectInHook: Enabled: false +RSpec/ExpectInLet: + Enabled: false + # NOTE: for many tests of equality `eql` works, while `be` does not, because # expected # => 101 # got # => 101.0 (0.101e3) diff --git a/dynamoid.gemspec b/dynamoid.gemspec index 198a8dfb..fa18da88 100644 --- a/dynamoid.gemspec +++ b/dynamoid.gemspec @@ -51,9 +51,9 @@ Gem::Specification.new do |spec| spec.metadata['wiki_uri'] = 'https://github.com/Dynamoid/dynamoid/wiki' spec.metadata['rubygems_mfa_required'] = 'true' - spec.add_runtime_dependency 'activemodel', '>=4' - spec.add_runtime_dependency 'aws-sdk-dynamodb', '~> 1.0' - spec.add_runtime_dependency 'concurrent-ruby', '>= 1.0' + spec.add_dependency 'activemodel', '>=4' + spec.add_dependency 'aws-sdk-dynamodb', '~> 1.0' + spec.add_dependency 'concurrent-ruby', '>= 1.0' spec.add_development_dependency 'appraisal' spec.add_development_dependency 'bundler' diff --git a/spec/dynamoid/criteria_new_spec.rb b/spec/dynamoid/criteria_new_spec.rb index 7a68dbb6..f99960cf 100644 --- a/spec/dynamoid/criteria_new_spec.rb +++ b/spec/dynamoid/criteria_new_spec.rb @@ -43,10 +43,10 @@ klass = new_class do range :name end + objects = klass.create([{ name: 'Alex' }, { name: 'Bob' }]) result = [] - objects = klass.create([{ name: 'Alex' }, { name: 'Bob' }]) - klass.each { |obj| result << obj } + klass.each { |obj| result << obj } # rubocop:disable Style/MapIntoArray expect(result).to match_array(objects) end