Commit 1760aa7f by andrew morton

Follow Rubocop's style suggestions

parent 1d03466d
...@@ -17,19 +17,19 @@ module RSpec ...@@ -17,19 +17,19 @@ module RSpec
end end
def example_group_started(notification) def example_group_started(notification)
output.print *group_output(notification) output.print(*group_output(notification))
end end
def example_passed(notification) 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 end
def example_pending(notification) 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 end
def example_failed(notification) 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 end
def example_finished(notification) def example_finished(notification)
......
...@@ -99,7 +99,8 @@ module RSpec ...@@ -99,7 +99,8 @@ module RSpec
def body def body
# And here all we need is the first half of the key to find the 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. # 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 instance.send(key.split('&').last).to_json
end end
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