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

fuubar_auto_refresh config undefined #121

Open
vinnydiehl opened this issue Jan 26, 2023 · 4 comments
Open

fuubar_auto_refresh config undefined #121

vinnydiehl opened this issue Jan 26, 2023 · 4 comments

Comments

@vinnydiehl
Copy link

I'm getting a failure when using the fuubar_auto_refresh option. In spec_helper.rb I have:

RSpec.configure do |config|
  # my configuration

  config.add_formatter "Fuubar"
  config.fuubar_auto_refresh = true
end

Output when I run the test suite is:

An error occurred while loading spec_helper.
Failure/Error: config.fuubar_auto_refresh = true

NoMethodError:
  undefined method `fuubar_auto_refresh=' for #<RSpec::Core::Configuration:...........>

I'm using Ruby 3.2.0, it's a Rails 7 app running on up-to-date Arch Linux. Without this configuration option Fuubar works perfectly.

@anothermh
Copy link

Add require 'fuubar' to the top of spec_helper.rb.

@vinnydiehl
Copy link
Author

That stopped the error, but didn't cause the desired behavior of the progress bar refreshing every second. It continues to refresh with each test.

@jfelchner
Copy link
Collaborator

@vinnydiehl my guess is that this is a misconfiguration. No one else is reporting this.

@jfelchner
Copy link
Collaborator

I'm not following how the code is currently working so I'll look into this for you.

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

No branches or pull requests

3 participants