solidusio / solidus_auth_devise

🔑 Devise authentication for your Solidus store.
http://solidus.io
BSD 3-Clause "New" or "Revised" License
53 stars 128 forks source link

Stub preferences in specs instead of resetting #166

Closed kennyadsl closed 4 years ago

kennyadsl commented 4 years ago

Solidus > 2.9 now has a system that allows to stub preferences instead of actually set a value on them and resetting after each spec run.

This PR makes this extension compatible with that system, still keeping backward compatibility with older Solidus versions.

Also, this is probably something that we should do on every extension.