Skip to content

Commit

Permalink
Merge pull request #1491 from troessner/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
mvz authored Oct 5, 2019
2 parents f895056 + 8dc78e9 commit 6099715
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ ruby RUBY_VERSION
group :development do
gem 'aruba', '~> 0.14.8'
gem 'cucumber', '~> 3.0'
gem 'factory_bot', '~> 5.0'
gem 'factory_bot', '~> 5.0', '!= 5.1.0'
gem 'kramdown', '~> 2.1'
gem 'kramdown-parser-gfm', '~> 1.0'
gem 'rake', '~> 12.0'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.0'
gem 'rspec-benchmark', '~> 0.5.0'
gem 'rubocop', '~> 0.74.0'
gem 'rubocop-performance', '~> 1.4.0'
gem 'rubocop-rspec', '~> 1.35.0'
gem 'rubocop', '~> 0.75.0'
gem 'rubocop-performance', '~> 1.5.0'
gem 'rubocop-rspec', '~> 1.36.0'
gem 'simplecov', '~> 0.17.0'
gem 'yard', '~> 0.9.5'

Expand Down
2 changes: 1 addition & 1 deletion lib/reek/smell_detectors/too_many_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.default_config
# @return [Array<SmellWarning>]
#
def sniff
count = context.local_nodes(:casgn).reject(&:defines_module?).length
count = context.local_nodes(:casgn).count { |it| !it.defines_module? }

return [] if count <= max_allowed_constants

Expand Down
2 changes: 1 addition & 1 deletion spec/reek/cli/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
described_class.new ['--foo']
end
end
expect(call).to raise_error(SystemExit) do |error|
expect(&call).to raise_error(SystemExit) do |error|
expect(error.status).to eq Reek::CLI::Status::DEFAULT_ERROR_EXIT_CODE
end
end
Expand Down
1 change: 1 addition & 0 deletions spec/reek/examiner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
it 'is not smelly' do
expect(examiner).not_to be_smelly
end

it 'finds no smells' do
expect(examiner.smells.length).to eq(0)
end
Expand Down
2 changes: 2 additions & 0 deletions spec/reek/smell_configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
it { expect(smell_config.merge('enabled' => true)).to eq(base_config) }
it { expect(smell_config.merge('exclude' => [])).to eq(base_config) }
it { expect(smell_config.merge('accept' => ['_'])).to eq(base_config) }

it do
updated = smell_config.merge('reject' => [/^.$/, /[0-9]$/, /[A-Z]/])
expect(updated).to eq(base_config)
end

it do
updated = smell_config.merge('accept' => ['_'], 'enabled' => true)
expect(updated).to eq(base_config)
Expand Down

0 comments on commit 6099715

Please sign in to comment.