Sha256: 324696ce9e5eeab2ec6aa23dcfd7b3df2484c3cc9596f1a8df5d80708eaaf8cd

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

require File.expand_path('<%= '../' * const.nesting_depth %>../test_helper', __FILE__) 
require '<%= const.relative_path %>'

class <%= const.name %>Test < Test::Unit::TestCase
  acts_as_tap_test 
  
  def test_<%= const.basename %>
    task = <%= const.const_name %>.new :message => "goodnight"
    
    # a simple test
    assert_equal({:message  => 'goodnight'}, task.config)
    assert_equal "goodnight moon", task.process("moon")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tap-gen-0.8.0 templates/tap/generator/generators/task/test.erb
tap-gen-0.7.1 templates/tap/generator/generators/task/test.erb
tap-gen-0.7.0 templates/tap/generator/generators/task/test.erb