2012-07-12 2 views
0

Windows에서 Rails 3.2.3을 실행 중이고이 튜토리얼의 내용은 http://net.tutsplus.com/tutorials/ruby/the-intro-to-rails-screencast-i-wish-i-had/입니다. 'guard'(시간 4:34)를 실행하면 실패를 보는 대신 다음과 같은 오류가 발생합니다. 이미 gemfile에서 제거 된 minitest를 제거했습니다. 어떤 제안?Rails 3.2.3 실패 대신 번들러 오류가 발생하지 않습니다.

 C:\Users\Steven\Documents\Sites\tasks>guard 
    ←[0m 
    Guard here! It looks like your project has a Gemfile, yet you are running 
    `guard` outside of Bundler. If this is your intent, feel free to ignore this 
    message. Otherwise, consider using `bundle exec guard` to ensure your 
    dependencies are loaded correctly. 
    (You can run `guard` with --no-bundler-warning to get rid of this message.) 
    ←[0m 
    ←[0mGuard could not detect any of the supported notification libraries.←[0m 
    ←[0mGuard is now watching at 'C:/Users/Steven/Documents/Sites/tasks'←[0m 
    ←[0mGuard::RSpec is running, with RSpec 2!←[0m 
    ←[0m←[0mRunning all specs←[0m 
    ansi: 'gem install win32console' to use color on Windows 
    gem install minitest 
    C:/Ruby192/lib/ruby/gems/1.9.1/gems/turn-0.9.6/lib/turn/minitest.rb:23:in `<top 
    (required)>': MiniTest v1.6.0 is out of date. (RuntimeError) 
    `gem install minitest` and add `gem 'minitest' to you test helper. 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/turn-0.9.6/lib/turn.rb:13:in `r 
    equire' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/turn-0.9.6/lib/turn.rb:13:in `< 
    top (required)>' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runti 
    me.rb:68:in `require' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runti 
    me.rb:68:in `block (2 levels) in require' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runti 
    me.rb:66:in `each' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runti 
    me.rb:66:in `block in require' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runti 
    me.rb:55:in `each' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runti 
    me.rb:55:in `require' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler.rb:11 
    9:in `require' 
    from C:/Users/Steven/Documents/Sites/tasks/config/application.rb:13:in ` 
    <top (required)>' 
    from C:/Users/Steven/Documents/Sites/tasks/config/environment.rb:2:in `r 
    equire' 
    from C:/Users/Steven/Documents/Sites/tasks/config/environment.rb:2:in `< 
    top (required)>' 
    from C:/Users/Steven/Documents/Sites/tasks/spec/spec_helper.rb:3:in `req 
    uire' 
    from C:/Users/Steven/Documents/Sites/tasks/spec/spec_helper.rb:3:in `<to 
    p (required)>' 
    from C:/Users/Steven/Documents/Sites/tasks/spec/requests/tasks_spec.rb:1 
    :in `require' 
    from C:/Users/Steven/Documents/Sites/tasks/spec/requests/tasks_spec.rb:1 
    :in `<top (required)>' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.0/lib/rspec/cor 
    e/configuration.rb:780:in `load' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.0/lib/rspec/cor 
    e/configuration.rb:780:in `block in load_spec_files' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.0/lib/rspec/cor 
    e/configuration.rb:780:in `map' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.0/lib/rspec/cor 
    e/configuration.rb:780:in `load_spec_files' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.0/lib/rspec/cor 
    e/command_line.rb:22:in `run' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.0/lib/rspec/cor 
    e/runner.rb:69:in `run' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.0/lib/rspec/cor 
    e/runner.rb:8:in `block in autorun' 
    > C:/Ruby192/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/adapters/windows.r 
    b:42:in `join': Interrupt 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/adapter 
    s/windows.rb:42:in `stop' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/listene 
    r.rb:55:in `stop' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard.rb:169:in 
    `stop' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/cli.rb:10 
    2:in `rescue in start' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/cli.rb:99 
    :in `start' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.15.2/lib/thor/task.rb:27 
    :in `run' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.15.2/lib/thor/invocation 
    .rb:120:in `invoke_task' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.15.2/lib/thor.rb:275:in 
    `dispatch' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.15.2/lib/thor/base.rb:40 
    8:in `start' 
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/guard-1.2.3/bin/guard:6:in `<to 
    p (required)>' 
    from C:/Ruby192/bin/guard:23:in `load' 
    from C:/Ruby192/bin/guard:23:in `<main>' 

답변

0

Ruby 디렉토리로 이동하여 minitest.rb 파일을 삭제하면 문제가 해결되었습니다. 그런 다음 turn.rb 파일로 이동하여 다음을 주석 처리했습니다.

require 'turn/minitest' 

희망이 있습니다.