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

Fix invalid option: --guard (OptionParser::InvalidOption) #2

Merged
merged 1 commit into from
Aug 8, 2017

Conversation

rastamhadi
Copy link
Contributor

I get this error when I try to run guard:

$ rbenv exec bundle exec guard
11:45:01 - INFO - Guard::Minitest 2.4.6 is running, with Minitest::Unit 5.10.3!
11:45:01 - INFO - Running: all tests
/Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/test_unit/minitest_plugin.rb:62:in `plugin_rails_options': invalid option: --guard (OptionParser::InvalidOption)
        from /Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/minitest-5.10.3/lib/minitest.rb:201:in `block (2 levels) in process_args'
        from /Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/minitest-5.10.3/lib/minitest.rb:199:in `each'
        from /Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/minitest-5.10.3/lib/minitest.rb:199:in `block in process_args'
        from /Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/minitest-5.10.3/lib/minitest.rb:169:in `new'
        from /Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/minitest-5.10.3/lib/minitest.rb:169:in `process_args'
        from /Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/minitest-5.10.3/lib/minitest.rb:123:in `run'
        from /Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/test_unit/minitest_plugin.rb:77:in `run'
        from /Users/rastam/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/minitest-5.10.3/lib/minitest.rb:63:in `block in autorun'

According to guard/guard-minitest#142 this is an issue with Rails 5.
Guard works after adding the settings specified in the issue.

@holysugar holysugar merged commit 8b92c5d into holysugar:master Aug 8, 2017
@rastamhadi rastamhadi deleted the guard branch August 9, 2017 02:15
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

Successfully merging this pull request may close these issues.

2 participants