Guest User

Untitled

a guest
Apr 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def in_file_test(file, &block)
  2. if $0 == file
  3. require 'test/unit'
  4.  
  5. inline_test = Class.new(Test::Unit::TestCase)
  6. inline_test.class_eval(&block)
  7. end
  8. end
Add Comment
Please, Sign In to add comment