Top "Testunit" questions

Test-unit is a unit testing library in Ruby.

How to define common setup and teardown logic for all tests in ruby's Test::Unit::TestCase?

Assume there are potentially expensive operations to be performed in setup or teardown that are same for all tests and …

ruby unit-testing installation testunit teardown
How to skip certain tests with Test::Unit

In one of my projects I need to collaborate with several backend systems. Some of them somewhat lacks in documentation, …

ruby-on-rails ruby testing testunit
Undefined method 'should' when using Capybara with Cucumber

I am trying to use both Capybara and Cucumber in my Rails application. So, that's what i did: Installed gems …

ruby-on-rails ruby-on-rails-3 cucumber capybara testunit
Why 'undefined method `assert_equal' ' is thrown even after requiring 'test/unit'

I opened irb & entered: require 'test/unit' but when I used the assert_equal method, I got following error: …

ruby testunit
NameError: uninitialized constant when trying to execute rails tests

In a Rails 3.2.13 app I'm writing right now I have a model called Business. As this model was getting fatter …

ruby-on-rails ruby ruby-on-rails-3 testunit ruby-2.0
How to run multiple Rails unit tests at once

I often run the various test groups like: rake test:units rake test:functionals I also like to run individual …

ruby-on-rails ruby testunit
What is the difference between jest.mock(module) and jest.fn()

I have tried couple different ways of defining the mock function and all of my tries failed. When I try …

reactjs jestjs testunit enzyme