Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 382 Bytes

README_FOCUS.rdoc

File metadata and controls

21 lines (14 loc) · 382 Bytes

Summary

Easily focus assertions

Examples

require 'nanotest'
require 'nanotest/focus'
include  Nanotest

assert("this test won't run") { false }

focus
assert { true }
assert("this test won't run") { false }

focus
assert { true }

This will only run the two tests following the #focus calls, and the “suite” will pass. Will also work across test files.