test/test_lighttask.rb in rant-0.3.6 vs test/test_lighttask.rb in rant-0.3.8
- old
+ new
@@ -1,27 +1,25 @@
require 'test/unit'
-require 'rant/rantlib'
+require 'tutil'
-
class TestLightTask < Test::Unit::TestCase
def setup
- @app = Rant::RantApp.new %w()
+ @app = Rant::RantApp.new
end
def teardown
end
# shortcut for Rant::LightTask.new
def lt(*args, &block)
Rant::LightTask.new(*[@app, args].flatten, &block)
end
def test_init
- t = lt :tinit
+ t = lt "tinit"
assert(t.needed?,
"needed? should be true after creation without " +
"`needed' block")
assert(!t.done?)
- assert_equal(t.name, "tinit",
- "task name should always be a string, despite creation with symbol")
+ assert_equal(t.name, "tinit")
end
def test_with_blocks
run = false
nr = false
t = lt :with_blocks do |a|