erwinjunker / regressor

Generate specs for your rails application the easy way. Regressor generates model and controller specs based on validations, associations, enums, database, routes, callbacks. Use regressor to capture your rails application behaviour.
MIT License
206 stars 33 forks source link

Cannot create model regression tests #23

Closed betogrun closed 7 years ago

betogrun commented 7 years ago

Hi,

I'm facing the error messages bellow when I try to generate regression tests for my models:

$ RAILS_ENV=test rails generate regressor:model

Cannot create model regression for ApplicationRecord. Reason Could not find table ''
Cannot create model regression for User. Reason Could not find table 'users'
Cannot create model regression for Note. Reason Could not find table 'notes'

Have you seen this error before?

PS: For database I'm using sqlite.

erwinjunker commented 7 years ago

Hi,

did you migrated your database before running regressor?

Best regards Erwin

betogrun commented 7 years ago

Hi,

That was the problem. It is working now!

Thanks!