Проблемы ядра 3.8.0 RSPEC - Неразрешенная спецификация - PullRequest
0 голосов
/ 03 октября 2018

У меня проблемы с запуском rspec.Будь то rspec или rspec ./spec/requests/.. Там написано Could not find minitest-5.11.2 in any of the sources сделайте пакетную установку, чтобы установить недостающие драгоценные камни.Поэтому я связываю установку.Затем он говорит:

WARN: Unresolved specs during Gem::Specification.reset:
      minitest (~> 5.1)
      rack-test (>= 0.6.3)
      rails-html-sanitizer (>= 1.0.2, >= 1.0.3, ~> 1.0)
      nokogiri (>= 1.6)
      erubi (~> 1.4)
      rake (>= 0.8.7)
      activerecord (< 5.3, >= 4.0)

Traceback (most recent call last):
    21: from /Users/john.moon/.gem/ruby/2.5.0/bin/rspec:23:in `<main>'
    20: from /Users/john.moon/.gem/ruby/2.5.0/bin/rspec:23:in `load'
    19: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/exe/rspec:4:in `<top (required)>'
    18: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:45:in `invoke'
    17: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:71:in `run'
    16: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:86:in `run'
    15: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:98:in `setup'
    14: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1558:in `load_spec_files'
    13: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1558:in `each'
    12: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1560:in `block in load_spec_files'
    11: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2033:in `load_file_handling_errors'
    10: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2037:in `rescue in load_file_handling_errors'
     9: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:161:in `notify_non_example_exception'
     8: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:92:in `message'
     7: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:199:in `notify'
     6: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:228:in `ensure_listeners_ready'
     5: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:47:in `block in prepare_default'
     4: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters.rb:125:in `setup_default'
     3: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters.rb:150:in `add'
     2: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters.rb:180:in `find_formatter'
     1: from /Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters.rb:210:in `built_in_formatter'
/Users/john.moon/.gem/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters.rb:210:in `require': cannot load such file -- rspec/core/formatters/progress_formatter (LoadError)

Так что я очистил его, используя gem cleanup [gemname] Но затем я вернулся к минимальной ошибке

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...