我正在尝试使用Rspec Gems在Ruby中执行代码。但我得到下面的LoadError:无法加载此类文件-

时间:2019-06-16 04:22:01

标签: ruby

Failure/Error: __send__(method, file)
LoadError:
  cannot load such file -- C:/Users/johnn/OneDrive/Desktop/Automation/Ex_Files_Learning_Selenium/Ex_Files_Learning_Selenium/Exercise Files/Ch01/01_06/start/program.rb
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/configuration.rb:2053:in `load'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/configuration.rb:2053:in `load_file_handling_errors'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/configuration.rb:1560:in `block in load_spec_files'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/configuration.rb:1558:in `each'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/configuration.rb:1558:in `load_spec_files'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/runner.rb:98:in `setup'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/runner.rb:86:in `run'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/runner.rb:71:in `run'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/lib/rspec/core/runner.rb:45:in `invoke'
# C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.1/exe/rspec:4:in `<top (required)>'
# C:/Ruby25-x64/bin/rspec:23:in `load'
# C:/Ruby25-x64/bin/rspec:23:in `<main>'
#
#   Showing full backtrace because every line was filtered out.
#   See docs for RSpec::Configuration#backtrace_exclusion_patterns and
#   RSpec::Configuration#backtrace_inclusion_patterns for more information.
No examples found.

0 个答案:

没有答案