Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use factory bot to save application rather than using a double #1066

Conversation

pakwfoley
Copy link

@pakwfoley pakwfoley commented Mar 28, 2018

Summary

Everywhere else in the doorkeeper specs FactoryBot is used to create applications. This change follows that consistency.

Not sure if this change would be worth mentioning in NEWS.md ?

Other Information

This change came about while building a custom orm that proxys to our main application's database for application data. There is no nice way of handling application doubles in our mock, so this small change would help us greatly.

            -Everywhere else in the specs FactoryBot is used to create
             applications. This change follows that consitency.
            -This change came about while building a custom orm that
             proxys to our main applications database for application
             data. There is no nice way of handling application doubles
             in our mock.
@nbulaj nbulaj merged commit a7f850a into doorkeeper-gem:master Mar 29, 2018
@nbulaj
Copy link
Member

nbulaj commented Mar 29, 2018

Nice point, thanks!

@nbulaj nbulaj added this to the 5.0 milestone Mar 29, 2018
@nbulaj nbulaj added the spec label Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants