Skip to content

Commit

Permalink
[RuboCop] Auto-gen config
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Jul 25, 2017
1 parent e5e0b99 commit d923c53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 8 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2017-07-19 09:13:10 -0500 using RuboCop version 0.49.1.
# on 2017-07-19 14:12:13 -0500 using RuboCop version 0.49.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -41,6 +41,13 @@ Style/FileName:
- 'Gemfile'
- 'Rakefile'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: InverseMethods, InverseBlocks.
Style/InverseMethods:
Exclude:
- 'lib/molinillo/resolution.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineIfModifier:
Expand Down
6 changes: 0 additions & 6 deletions spec/resolver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ def run(index_class, context)
it test_case.name do
skip 'does not yet reliably pass' if test_case.ignore?(index_class)

resolve = lambda do
index = index_class.new(test_case.index.specs)
resolver = Resolver.new(index, TestUI.new)
resolver.resolve(test_case.requested, test_case.base)
end

if test_case.conflicts.any?
expect { test_case.resolve(index_class) }.to raise_error do |error|
expect(error).to be_a(ResolverError)
Expand Down

0 comments on commit d923c53

Please sign in to comment.