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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when running the tests #1538

Open
HeitorMC opened this issue Feb 15, 2023 · 7 comments
Open

Problem when running the tests #1538

HeitorMC opened this issue Feb 15, 2023 · 7 comments

Comments

@HeitorMC
Copy link
Contributor

HeitorMC commented Feb 15, 2023

Hey guys, I was trying to run the tests with bundle exec rake but I don't know why, something is going wrong 馃

Here's the error:

image

I've already tried to bundle install and also updated the bundler version to 2.4.3, but it didn't work 馃槥

I'm currently using:
Ruby 3.2.0 (by asdf)
Bundler 2.4.3
Pop_Os 22.04 (I don't know if this information can be helpful too)

Update: This happens when you try to run the bin/setup. If we try to run

bundle check <path.../.../shoulda-matchers/gemfiles/rails_7_0.gemfile> || bundle install --gemfile='path/../shoulda-matchers/gemfiles/rails_7_0.gemfile' --retry 1'

If you run bundle exec rake, it will work 馃槕

Why is this behavior happening? 馃

@vsppedro
Copy link
Collaborator

Hi @HeitorMC, thanks for reporting this issue. I'll take a look as soon as possible.

@HeitorMC
Copy link
Contributor Author

Cool @vsppedro, thank you for help!
Please, let me know if there's anything I can do to help you with this issue :)

@vsppedro
Copy link
Collaborator

Sorry I couldn't replicate the issue, but if bundle exe rake is working then you can ignore this error.

You can run BUNDLE_GEMFILE=gemfiles/rails_7_0.gemfile bundle install to try to install just the missing gems, but it should work without that. We'll keep this open in case someone else stumbles across this or we find more information about the issue. Thanks!

@HeitorMC
Copy link
Contributor Author

HeitorMC commented Mar 3, 2023

Alright, thank you for the feedback @vsppedro. Please, let me know if there are any issues on shoulda-matchers that I can work on 馃

@vsppedro
Copy link
Collaborator

vsppedro commented Mar 3, 2023

No problem, glad to help, @HeitorMC. Let me think...

What do you think about updating Rubocop or the dependencies in the Gemfile?

If you want a bigger challenge take a look at the conversation in this PR: #1381, there's probably a bug in the allow_value matcher.

You can also pick any issue that I was assigned, if you want, because at the moment I'm giving attention to shoulda-context.

@mcmire, do you have something in mind for the next release?

@mcmire
Copy link
Collaborator

mcmire commented Mar 3, 2023

@vsppedro One thing I think we should continue to pursue is removing old Rubies and put out another major release. Ruby 2.7 will hit EOL at the end of the month so we might as well get a head start and drop it now! That will coincide with a new release of shoulda that I want to get out soon.

As for features/fixes, however, I'll have to look at the backlog more closely, but I skimmed through just now and found some smaller ones:

@Stevo-S
Copy link

Stevo-S commented Jun 28, 2023

For what it's worth, I ran into this issue as well.
Both on Ubuntu 22.04 (WSL) and Mac OS 11.6 (Intel CPU).

bundle exec rake was failing and only started working after running BUNDLE_GEMFILE=gemfiles/rails_7_0.gemfile bundle install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants