Closed pivotal-casebook closed 13 years ago
This might be because of this:
https://github.com/Casecommons/with_model/issues/1
I have been thinking of standardizing on using constants to refer to the models and losing the method and instance variable.
I believe this is fixed with b74e6bd8c72cf3f4b631a9341cca6d6e6b7c8f98
If you encounter this bug again, please write a failing spec. Thanks!
The problem here is that posts is referenced in the second context before it is defined so the Post class that is referenced is the one from the previous context. You can verify this by looking at the object ids.