0

I was following this tutorial which covers TDD using rspec, capybara etc. I added the following to my Gemfile:

group :test, :development do
    gem 'turn'
    gem 'rspec-rails'
    gem 'capybara'
    gem 'guard-rspec'
    gem 'growl_notify'
end

Ran bundle install and now get:

juco@jucoiMac ~/Desktop/rails-test $ rails s
    gem install minitest
    /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn/minitest.rb:9:in `require': no such file to load -- minitest/unit (LoadError)
        from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn/minitest.rb:9
        from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn.rb:13:in `require'
        from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn.rb:13
        from /Library/Ruby/Gems/1.8/gems/bundler-1.2.4/lib/bundler/runtime.rb:68:in `require'
        from /Library/Ruby/Gems/1.8/gems/bundler-1.2.4/lib/bundler/runtime.rb:68:in `require'
        from /Library/Ruby/Gems/1.8/gems/bundler-1.2.4/lib/bundler/runtime.rb:66:in `each'
        from /Library/Ruby/Gems/1.8/gems/bundler-1.2.4/lib/bundler/runtime.rb:66:in `require'
        from /Library/Ruby/Gems/1.8/gems/bundler-1.2.4/lib/bundler/runtime.rb:55:in `each'
        from /Library/Ruby/Gems/1.8/gems/bundler-1.2.4/lib/bundler/runtime.rb:55:in `require'
        from /Library/Ruby/Gems/1.8/gems/bundler-1.2.4/lib/bundler.rb:128:in `require'
        from /Users/juco/Desktop/rails-test/config/application.rb:7
        from /Library/Ruby/Gems/1.8/gems/railties-3.2.12/lib/rails/commands.rb:53:in `require'
        from /Library/Ruby/Gems/1.8/gems/railties-3.2.12/lib/rails/commands.rb:53
        from /Library/Ruby/Gems/1.8/gems/railties-3.2.12/lib/rails/commands.rb:50:in `tap'
        from /Library/Ruby/Gems/1.8/gems/railties-3.2.12/lib/rails/commands.rb:50
        from script/rails:6:in `require'
        from script/rails:6

When I try to execute any rails commands including rails server. This has been posted before, but went unanswered.

Community
  • 1
  • 1
juco
  • 6,331
  • 3
  • 25
  • 42

2 Answers2

1

turngem is for minitest. Seems you are using rspec so you got an incompatibility.

Ismael Abreu
  • 16,443
  • 6
  • 61
  • 75
1

Turn gem version-

 group :test do
      gem 'turn', '< 0.8.3'
    end

Followed from: Minitest Error.

Community
  • 1
  • 1
sjain
  • 23,126
  • 28
  • 107
  • 185