Sha256: e14ca282b8f17fd6388f20e35b2a4a48aa88d49d251bef3bb07ac91ff242a7d2

Contents?: true

Size: 819 Bytes

Versions: 3

Compression:

Stored size: 819 Bytes

Contents

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_content
    @tfm.remove_content @file, 'remove me'    
  end

  def test_remove_line
    @tfm.remove_line @file, 'delete me'    
  end


  def test_remove_require
    @tfm.remove_require @file, 'hobo/tasks/rails'
  end


  def test_insert_before
    @tfm.insert_before @file, 'before', "BEFORE"    
  end

  def test_insert_after
    @tfm.insert_after @file, 'after', "AFTER"        
  end


end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
txt_file_mutator-0.2.4 test/test_txt_file_mutator.rb
txt_file_mutator-0.2.2 test/test_txt_file_mutator.rb
txt_file_mutator-0.2.1 test/test_txt_file_mutator.rb