Sha256: ed1040f1bc3257c31bc68301c6e52cb2134edd8215e45d281a630c5aa2c1f68e

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

require 'test_helper'

module Kernel
 
  def capture_stdout
    out = StringIO.new
    $stdout = out
    yield
    $stdout = STDOUT
    return out
  end
 
end

class BlueprintTest < Test::Unit::TestCase
  def test_missing_email
    out = capture_stdout do 
      b = blueprint "Test", :item_type => "readystack" do |f|
        f.provides "rails", :script => "script.sh"
      end
    end
    
    assert out.string.include?("no email template found for rails")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webbynode-blueprint-0.0.4 test/blueprint_test.rb
webbynode-blueprint-0.0.5 test/blueprint_test.rb