Last active
August 29, 2015 14:21
-
-
Save Momus/d09a5e74f0c22edf1d7d to your computer and use it in GitHub Desktop.
Using Minitest assertions for debugging in Ruby on Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## When you | |
require 'test_helper' | |
## and create tests with, for example, | |
class UsersLoginTest < ActionDispatch::IntegrationTest | |
## In your | |
test "verify an important feature" do | |
## you can use assert statements to print out debugging info | |
## the format is assert( TEST , msg = 'string') | |
assert_nil my_hash[:value], | |
msg = "My Hash:" + my_hash.to_s | |
end | |
end #class UsersLoginTest < ActionDispatch::IntegrationTest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment