--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/d1e28613-e751-4b1a-9a9d-79a2ff02e419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Please consider the environment before printing this email.
Regards,
You have a typo in your Thing code:
def self.count=(val)
# Typo is +=, use just =
@count += val
end
That should just be @count = val not +=. This is causing count to increase in size each time by 1 plus itself.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CAHGOqz489cB6o00nC7NKfa5%3DoMKXwirRPDpffM6%2BsbsFip2-xg%40mail.gmail.com.