I have rails application and rails plugin. Rails application has User model. In my Rails Plugin I have controller which creates User record, but it does not knows anything about user(user model lives in parent rails application)
How i can test my rails plugin create action?
Where I need to write tests? Do I need to create copy of User model in dummy application and write tests there?
Aucun commentaire:
Enregistrer un commentaire