Sha256: 812a28debf185987b2fac43c3c9d3a919753546cad12c58d9b04f72dc0a8ddc0
Contents?: true
Size: 665 Bytes
Versions: 6
Compression:
Stored size: 665 Bytes
Contents
require File.join(File.dirname(__FILE__), '<%= '../' * const.nesting_depth %>tap_test_helper.rb') require '<%= const.path %>' class <%= const.name %>Test < Test::Unit::TestCase acts_as_tap_test def test_<%= const.basename %> task = <%= const.name %>.new :message => "goodnight" # a simple test assert_equal({:message => 'goodnight'}, task.config) assert_equal "goodnight moon", task.process("moon") # a more complex test task.execute("moon") assert_equal ["goodnight moon"], app.results(task) assert_audit_equal ExpAudit[[nil, "moon"], [task, "goodnight moon"]], app._results(task)[0] end end
Version data entries
6 entries across 6 versions & 2 rubygems