I might be missing something, but I'm stuck in this scenario:
I have a non activerecord model that I want to test. I got my class of test cases: Test :: Unit :: TestCase .
However, the test case class for the model uses internally the other classes of the activerecord model, and I want to download them for them. My problem is that the fixture class method is only available when I subclass the test case class from ActiveSupport :: TestCase (it is defined in ActiveRecord :: TestFixtures , which is part of ActiveSupport :: TestCase).
Any help doing the tests gives me an error: the undefined "fixtures" method (which is understandable), and if I derive my test class from ActiveSupport :: TestCase, it complains that there is no corresponding DB table, Also, I don’t I want to create a dummy table to support my model class.
Thank you, ton!
source
share