Sha256: 56d023d118a4df458865d5efb0ecf757b91aa2b791fa8954c15f02bebd69205b

Contents?: true

Size: 692 Bytes

Versions: 6

Compression:

Stored size: 692 Bytes

Contents

require 'helper'
require 'turnip_formatter/step_template/base'

module TurnipFormatter::StepTemplate
  class TestSource < Test::Unit::TestCase
    include TurnipFormatter::TestHelper

    def setup
      @backup_templates = TurnipFormatter.step_templates
      TurnipFormatter.step_templates.clear

      @template = TurnipFormatter::StepTemplate::Exception.new
    end

    def teardown
      TurnipFormatter.step_templates.clear
      @backup_templates.each do |t|
        TurnipFormatter.step_templates << t
      end
    end

    def test_build_failed
      actual = @template.build_failed(dummy_failed_step)
      assert_match(%r{<div class="step_exception">}, actual)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
turnip_formatter-0.8.0 test/turnip_formatter/step_template/test_source.rb
turnip_formatter-0.7.2 test/turnip_formatter/step_template/test_source.rb
turnip_formatter-0.7.1 test/turnip_formatter/step_template/test_source.rb
turnip_formatter-0.7.0 test/turnip_formatter/step_template/test_source.rb
turnip_formatter-0.6.1 test/turnip_formatter/step_template/test_source.rb
turnip_formatter-0.6.0 test/turnip_formatter/step_template/test_source.rb