require 'txt_file_mutator' require "test/unit" class TestTxtFileMutator < Test::Unit::TestCase def setup @tfm = TextFileMutator @file = 'DATA.txt' puts @tfm.instance_methods end def teardown ## Nothing really end # include method def test_comment_line @tfm.comment_line @file, 'blip' end def test_comment_gem_config @tfm.comment_gem_config @file, 'hobo' end def test_remove_line @tfm.remove_line @file, 'remove me' end def test_insert_before @tfm.insert_before @file, 'before', "BEFORE" end def test_insert_after @tfm.insert_after @file, 'after', "AFTER" end end