Skip to content

this is incompatible with Cucumber #1

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions