Sha256: fdc0323f244aa5b08387a28460788b92e7de0a9e884c0f4e3eab27c4b238053a
Contents?: true
Size: 632 Bytes
Versions: 3
Compression:
Stored size: 632 Bytes
Contents
require 'test_helper' require 'rake' class RakeTaskTest < Test::Unit::TestCase context "Deadweight::RakeTask.new" do setup do @io = StringIO.new("", "w") Deadweight::RakeTask.new(@io) do |d| default_settings(d) end @task_names = Rake::Task.tasks.map { |t| t.name } @task = Rake::Task.tasks.find { |t| t.name == 'deadweight' } end should "define a `deadweight` task that automatically runs" do assert @task, "no deadweight task found in: #{@task_names.inspect}" @task.execute @io.close assert_correct_selectors_in_output(@io.string) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deadweight-0.1.3 | test/rake_task_test.rb |
deadweight-0.1.2 | test/rake_task_test.rb |
deadweight-0.1.1 | test/rake_task_test.rb |