Atalanta / leibniz

Leibniz is an integration testing framework for Chef
MIT License
80 stars 16 forks source link

Cucumber asks to add minitest #17

Closed alfredopalhares closed 10 years ago

alfredopalhares commented 10 years ago

Following the example on the README, cucumber complains.

cucumber
cucumberWarning: you should require 'minitest/autorun' instead. Warning: or add 'gem "minitest"' before 'require "minitest/autorun"' From: /usr/lib/ruby/2.0.0/test/unit.rb:3:in <top (required)>' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb:2:in<top (required)>' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/runtime.rb:23:in initialize' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/cli/main.rb:44:innew' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/cli/main.rb:44:in execute!' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/bin/cucumber:13:in<top (required)>' /usr/bin/cucumber:23:in load' /usr/bin/cucumber:23:in

' MiniTest::Unit::TestCase is now Minitest::Test. From /usr/lib/ruby/2.0.0/test/unit/testcase.rb:8:in <module:Unit>' undefined method_run_suite' for class Test::Unit::Runner' (NameError) /usr/lib/ruby/2.0.0/test/unit.rb:670:inclass:Runner' /usr/lib/ruby/2.0.0/test/unit.rb:255:in <module:Unit>' /usr/lib/ruby/2.0.0/test/unit.rb:9:inmodule:Test' /usr/lib/ruby/2.0.0/test/unit.rb:8:in <top (required)>' /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:inrequire' /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in require' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb:2:in<top (required)>' /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in require' /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:inrequire' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/runtime.rb:23:in initialize' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/cli/main.rb:44:innew' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/cli/main.rb:44:in execute!' /usr/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/bin/cucumber:13:in<top (required)>' /usr/bin/cucumber:23:in load' /usr/bin/cucumber:23:in
'

What am I doing wrong ?

Regards, Alfredo Palhares

micxer commented 10 years ago

As you closed your own ticket, I assume you found a solution to your problem. Can you provide the answer so that other people coming here for the same problem can find it?

alfredopalhares commented 10 years ago

@micxer sorry I tough I hit comment and close. But not. The problem was due to bad packaging. I now use bundler and its working.

micxer commented 10 years ago

Thanks!