Top "Minitest" questions

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

Minitest and Rspec

I have just watched a Railscast for Minitest. What are the pros and cons for using RSpec vs Minitest for …

ruby-on-rails ruby testing rspec minitest
How to assert the contents of an array, indifferent of the ordering

I have a minitest spec: it "fetches a list of all databases" do get "/v1/databases" json = JSON.parse(response.…

ruby-on-rails minitest assertion
How to set up MiniTest?

I'm a fairly novice tester, but have been trying to get better at TDD in Rails. RSpec works great, but …

ruby-on-rails ruby-on-rails-3 rspec installation minitest
How to organize minitest/unit tests?

After using RSpec for several projects, I'm giving minitest/unit a go. I'm liking it so far, but I miss …

ruby-on-rails ruby minitest
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
Expected response to be a <redirect>, but was <200>

I'm trying to testing the create action in the UsersController where the user is created with a profile; then the …

ruby-on-rails ruby-on-rails-4 minitest
How do I stub a method to raise an error using Ruby MiniTest?

I'm trying to test a Rails controller branch that is triggered when the model method raises an error. def my_…

ruby minitest
How to fill_in datepicker using Capybara, Rails, MiniTest spec

I have a form_tag that generates the following HTML: <form accept-charset="UTF-8" action="http://www.example.com/product_…

ruby-on-rails-3 capybara minitest
Using Minitest in Rails

Recently, I've read quite a few articles about Minitest. I really like the idea of a super lightweight test framework. …

ruby-on-rails-3 minitest
URI::InvalidURIError: bad URI(is not URI?) testing Rails controllers

I get URI::InvalidURIError testing Rails Home controller: require 'test_helper' class HomeControllerTest < ActionDispatch::IntegrationTest test "should get index" …

ruby-on-rails ruby controller tdd minitest