Top "Minitest" questions

a testing framework that comes in the standard library of Ruby 1.9.

Is it possible to run a single test in MiniTest?

I can run all tests in a single file with: rake test TEST=path/to/test_file.rb However, if …

ruby ruby-on-rails-3 minitest
How do I stub things in MiniTest?

Within my test I want to stub a canned response for any instance of a class. It might look like …

ruby minitest stub
How to run all tests with minitest?

I downloaded source code for a project, found a bug, and fixed it. Now I want to run tests to …

ruby minitest
What is the expected syntax for checking exception messages in MiniTest's assert_raises/must_raise?

What is the expected syntax for checking exception messages in MiniTest's assert_raises/must_raise? I'm trying to make an …

ruby tdd minitest assertion
Before/After Suite when using Ruby MiniTest

Is there an alternative to RSpec's before(:suite) and after(:suite) in MiniTest? I suspect that a custom test runner …

ruby test-suite minitest
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 to assert certain method is called with Ruby minitest framework?

I want to test whether a function invokes other functions properly with minitest Ruby, but I cannot find a proper …

ruby unit-testing testing minitest
Testing controllers with Minitest

I'm trying to find examples of testing controllers with Minitest, but I've only found a couple and the just verify …

ruby-on-rails testing rspec rspec-rails minitest
Rake doesn't know how to build tasks: default or minitest

I built a gem a while back and did not include any tests (shame on me). I've since attempted to …

ruby rake minitest