Sha256: 46de8ef63a159e438e794d0eb5251dafb29647f2e2ccab3b1c76326a0a26987b

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 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 %>_calls_stack
    runlist = []
    n = app.node {|input| runlist << input}
    m = app.use(<%= const.const_name %>)
    
    m.call(n, ['input'])
    assert_equal ['input'], runlist
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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