Commit 1760aa7f by andrew morton

Follow Rubocop's style suggestions

parent 1d03466d
......@@ -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