Top "Testunit" questions

Test-unit is a unit testing library in Ruby.

How can I tell Rails to use RSpec instead of test-unit when creating a new Rails app?

I have test-unit installed and rspec installed (along with -core, -expectations, -mocks and -rails version 2.6.x). When I run the …

ruby-on-rails-3 rspec rspec2 testunit
Ruby on Rails: Switch from test_unit to rspec

I'm going through a tutorial that has suggested using rspec, but I have already gone through a lot of default …

ruby-on-rails rspec gem testunit
How to use assert_select to test for presence of a given link?

My page should contain a link that looks like <a href="/desired_path/1">Click to go</a&…

ruby-on-rails ruby-on-rails-3 testing minitest testunit
How do I execute a single test using Ruby test/unit?

Instead of running all the test cases automatically, is there any way to execute a single test under ruby test/…

ruby unit-testing testing testunit
Rspec vs. TestUnit

I'm beginning the planning phase of creating a testing suite for my rails 3.0.8 application. I'm trying to decide on which …

ruby-on-rails ruby ruby-on-rails-3 testing testunit
How to programmatically sign in a user through Devise in Rails

I need to have a custom mechanism for signing in using Devise with Rails 4. So I found the sign_in …

ruby-on-rails rspec ruby-on-rails-4 devise testunit
Setup Factory Girl with Test::Unit and Shoulda

I'm trying to set up Factory Girl with Test::Unit and Shoulda in Ruby on Rails. I have installed the …

ruby-on-rails ruby shoulda factory-bot testunit
Test::Unit Rails - How to assert one number is greater than another one?

I am writing my first unit tests with Test::Unit and I have reached a point where I need to …

ruby-on-rails assert testunit
How to color unit tests with lib minitest or Test:Unit?

I would like to have unit tests output color in my dev environment. However, I can't make it work on …

ruby testunit minitest
In ruby, can you execute assert_equal and other asserts while in irb?

Can you execute assert_equal from within irb? This does not work. require 'test/unit' assert_equal(5,5)

ruby testunit