Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this is incompatible with Cucumber #1

Open
ghost opened this issue Jul 6, 2012 · 1 comment
Open

this is incompatible with Cucumber #1

ghost opened this issue Jul 6, 2012 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 6, 2012

Running rails (3.2.6), ruby (1.9.3-p125), cucumber-rails (1.3.0) , not using RSpec

Not installing test-unit-rails (1.0.2) :

  • I can run all my tests ( units , functionals) w rake test
  • I can run my cucumber integration tests => cucumber --format progress -r features

Trick , using only gem 'test-unit' in the gem file ( to avoid the faulty notify.rb
and adding 2lines in the Cucumber /features/support/env.rb
require 'test/unit/assertions'
World(Test::Unit::Assertions)

However, after installing test-unit-rails (1.0.2) which seems to require and install all dependencies test-unit (2.5.1), test-unit-activesupport (1.0.0), test-unit-capybara (1.0.2), test-unit-notify (0.3.0)
I get an error

Using the default profile...
undefined method prepare' for Test::Unit::AutoRunner:Class (NoMethodError) ..../gems/test-unit-notify-0.3.0/lib/test/unit/notify.rb:14:inmodule:Unit'
..../gems/test-unit-notify-0.3.0/lib/test/unit/notify.rb:13:in <module:Test>' ..../test-unit-notify-0.3.0/lib/test/unit/notify.rb:12:in<top (required)>'
...
obviously Test::Unit::AutoRunner doesn't have the 'prepare' method

@kou
Copy link
Member

kou commented Aug 10, 2012

Sorry for my late response.

It seems that test-unit-notify uses Ruby bundled Test::Unit instead of test-unit gem.
I want to try it on my environment. Could you show your test/test_helper.rb?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant