Reputation: 6036
I am getting Coverage is not a class (TypeError)
I have already a coverage class in my model and I added gem 'SimpleCov' and when I run Spec then Getting Coverage is not a class (TypeError)
.
The error comes because of coverage class in my model. so Is there any way to change coverage class in SimpleCov and give another name for that class?
Thanks In Advance
Upvotes: 1
Views: 344
Reputation: 489
Could you namespace your Coverage class? In that way will not be collision. You will need refactor your code.
Upvotes: 0