我正在尝试运行spec / acceptance /它给LoadError无法加载acceptance_helper文件

时间:2016-07-20 06:18:07

标签: ruby-on-rails-4

错误:

/home/geeta/DemoApp/demo_app/spec/acceptance/students_spec.rb:1:in `require': cannot load such file -- acceptance_helper (LoadError)
    from /home/geeta/DemoApp/demo_app/spec/acceptance/students_spec.rb:1:in `<top (required)>'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1327:in `load'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1327:in `block in load_spec_files'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1325:in `each'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1325:in `load_spec_files'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:102:in `setup'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:88:in `run'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke'
    from /home/geeta/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.3.2/exe/rspec:4:in `<top (required)>'
    from /home/geeta/.rvm/gems/ruby-2.2.1/bin/rspec:23:in `load'
    from /home/geeta/.rvm/gems/ruby-2.2.1/bin/rspec:23:in `<main>'
    from /home/geeta/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
    from /home/geeta/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'

1 个答案:

答案 0 :(得分:0)

尝试使用

运行命令
bundle exec rspec spec/...