Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change variable from index to i for 1.8.7

  • Loading branch information...
commit 243e1c8abd8766925ded934fcc524bcfa48bc6a6 1 parent 2d8ced3
Eric Oestrich oestrich authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec_api_documentation/combined_text_writer.rb
4 lib/rspec_api_documentation/combined_text_writer.rb
View
@@ -8,14 +8,14 @@ def self.write(index, configuration)
f.print example.description
f.print example.parameters
- example.requests.each_with_index do |(request, response), index|
+ example.requests.each_with_index do |(request, response), i|
f.puts "Request:"
f.puts request
f.puts
f.puts "Response:"
f.puts response
- if index + 1 < example.requests.count
+ if i + 1 < example.requests.count
f.puts
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.