fixing offset bug

found by tests that overwrite the attribute
This commit is contained in:
Torsten Ruger
2015-10-26 12:57:54 +02:00
parent 1a236aa50e
commit d2c670b31a
3 changed files with 15 additions and 11 deletions

View File

@ -140,6 +140,7 @@ module Parfait
module Methods
def offset( offset )
offset += 1 # for the attribute we add (indexed_length)
define_method :get_offset do
offset