Sha256: 14865d32d38beac9e723d7e80b62096109d4e3e61be8f126625e564f4c8139ad
Contents?: true
Size: 763 Bytes
Versions: 2
Compression:
Stored size: 763 Bytes
Contents
#!/usr/bin/env ruby require 'bee' require 'test/unit' $:.unshift(File.join(File.expand_path(File.dirname(__FILE__)))) require 'test_build' require 'test_build_listener' $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'bee_task_<%= project_short_name %>' # Test case for bee task. class TestBeeTask<%= project_short_name.capitalize %> < Test::Unit::TestCase # Create a context object and load tasks in it. def setup super @context = Bee::Context.new(nil) @listener = TestBuildListener.new @build = TestBuild.new(@context, @listener) @package = Bee::Task::<%= project_short_name.capitalize %>.new(@build) end def test_hello @package.hello('TEST') assert_equal("Hello TEST!\n", @listener.output) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bee-0.10.2 | egg/package/test.erb |
bee-0.10.1 | egg/package/test.erb |