Permalink
Browse files

Change variable from index to i for 1.8.7

  • Loading branch information...
1 parent 2d8ced3 commit 243e1c8abd8766925ded934fcc524bcfa48bc6a6 @oestrich oestrich committed Aug 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec_api_documentation/combined_text_writer.rb
@@ -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

0 comments on commit 243e1c8

Please sign in to comment.