Commit a3f4a1e0 by andrew morton Committed by GitHub

Merge pull request #35 from drewish/codeclimate

Configure CodeClimate
parents 95a95ccc 1760aa7f
---
engines:
duplication:
enabled: true
exclude_paths:
- spec/
config:
languages:
- ruby
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- "**.rb"
exclude_paths:
- lib/generators/rspec/swagger/templates/
- spec/testapp/
This diff is collapsed. Click to expand it.
......@@ -17,19 +17,19 @@ module RSpec
end
def example_group_started(notification)
output.print *group_output(notification)
output.print(*group_output(notification))
end
def example_passed(notification)
output.print RSpec::Core::Formatters::ConsoleCodes.wrap(example_output(notification), :success)
output.print(RSpec::Core::Formatters::ConsoleCodes.wrap(example_output(notification), :success))
end
def example_pending(notification)
output.print RSpec::Core::Formatters::ConsoleCodes.wrap(example_output(notification), :pending)
output.print(RSpec::Core::Formatters::ConsoleCodes.wrap(example_output(notification), :pending))
end
def example_failed(notification)
output.print RSpec::Core::Formatters::ConsoleCodes.wrap(example_output(notification), :failure)
output.print(RSpec::Core::Formatters::ConsoleCodes.wrap(example_output(notification), :failure))
end
def example_finished(notification)
......
......@@ -99,7 +99,8 @@ module RSpec
def body
# And here all we need is the first half of the key to find the body
# parameter and its name to fetch a value.
if key = parameters(:body).keys.first
key = parameters(:body).keys.first
if key
instance.send(key.split('&').last).to_json
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment