nejdetkadir / devise-api

The devise-api gem is a convenient way to add authentication to your Ruby on Rails application using the devise gem. It provides support for access tokens and refresh tokens, which allow you to authenticate API requests and keep the user's session active for a longer period of time on the client side
MIT License
152 stars 22 forks source link

[update] calling FactoryBot module in requests/tokens_spec.rb #4

Closed codescaptain closed 1 year ago

codescaptain commented 1 year ago

Why?

Always we calling FactoryBot module in the test file and I think It makes harder to reading code.

What did I do?

I added Rspec confing add in supports/dependencies/factory_bot.rb. I read FactoryBot documentaion and I found this code : Setup

Checklist

nejdetkadir commented 1 year ago

Thank you for your contribution 🙏🏻🚀