Skip to content

Commit

Permalink
Fix HandleExceptions and LiteralInCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Oct 11, 2014
1 parent eafd5c6 commit 714bf3e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 26 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
Lint/HandleExceptions:
Enabled: false

# Offense count: 1
Lint/LiteralInCondition:
Enabled: false

# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Expand Down
9 changes: 3 additions & 6 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
begin
require 'simplecov'
SimpleCov.start do
add_filter "/test/"
end
rescue LoadError
require 'simplecov'
SimpleCov.start do
add_filter "/test/"
end

require 'minitest/autorun'
Expand Down
22 changes: 10 additions & 12 deletions test/unit/sexp_processor_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,17 @@ def process_baz exp
end
end

if false
describe "for an :args_add_block sexp" do
it "transforms a one-argument sexp to an :arglist" do
sexp = s(:args_add_block, s(s(:foo)), false)
result = processor.process sexp
result.must_equal s(:arglist, s(:foo_p))
end
describe "for an :args_add_block sexp" do
it "transforms a one-argument sexp to an :arglist" do
sexp = s(:args_add_block, s(s(:foo)), false)
result = processor.process sexp
result.must_equal s(:arglist, s(:foo_p))
end

it "transforms a multi-argument sexp to an :arglist" do
sexp = s(:args_add_block, s(s(:foo), s(:bar)), false)
result = processor.process sexp
result.must_equal s(:arglist, s(:foo_p), s(:bar_p))
end
it "transforms a multi-argument sexp to an :arglist" do
sexp = s(:args_add_block, s(s(:foo), s(:bar)), false)
result = processor.process sexp
result.must_equal s(:arglist, s(:foo_p), s(:bar_p))
end
end

Expand Down

0 comments on commit 714bf3e

Please sign in to comment.