-
Notifications
You must be signed in to change notification settings - Fork 116
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
Fix rspec-rails
gem issues
#626
Conversation
Spring does not support Rails 7.1 and Ruby 3.3, which are both used in this project.
If you attempt to run a fresh installation of this repo, the tests won't pass because of the importations: - As the arctic_admin gem is not initially on the gemfile, it will cause the system specs to fail. - We also need to have the `active_admin.js` in order to pass the specs (and ensure functionality). Worth mentioning that `arctic_admin/base` already adds `mixins` and `fontawesome`, so there might be no need to add them manually.
Hi @bigchickenwings thanks for the report.
|
Hi, @santib Nice catch, I didn't run Any reason behind this decision? This is of course a matter of personal preference, but I do prefer to not have to run |
@bigchickenwings yes, it should be ran automatically. Not sure why it's not happening, maybe it's related to the issue I shared above. But it'd be good to fix it (maybe it's a fix in UPDATE: |
rspec-rails gem should be in dev and test environment
arctic_admin
and spring
gems issuesrspec-rails
and spring
gems issues
@santib done! Thanks for the help 😄 Let me know if there's anything else I should address on this PR. |
Would you mind making 2 separate PRs with the appropriate titles? One for improving the rspec-rails setup, and the other to remove Spring (also check for more places where it needs to be removed). This way we can review and have conversations on each of them individually and eventually merge them once they are ready without blocking each other. For example the rspec-rails change will probably be easily accepted, the removal of spring may require some discussion. |
rspec-rails
and spring
gems issuesrspec-rails
gem issues
9659688
to
eab8fac
Compare
eab8fac
to
07db75e
Compare
@santib updated this one to handle Will be creating the |
Thanks @bigchickenwings 🙌 |
Fix `rspec-rails` gem issues (rootstrap#626)
Description:
Currently, cloning this repository, running the setup command, and then running the specs don't work.
Arctic Admin related issues (Caused by
rspec-rails
):The system specs don't work as-is. It throws the following error:
This happens because we are adding the
arctic_admin
throughpackage.json
instead of adding it as a gem. Therefore, we need to runbundle exec rails assets:precompile
before running our specs.If we move the
rspec-rails
gem to both the:development
and:test
environments, this will be done automatically for us, as mentioned by @santibWith these changes, the API will always work on newly-cloned environments, without needing additional setup.
Preview:
Before:
After: