Sha256: 249572c48146840d4855efa7126b9dca7207159ac7f711bde4ef1d1f940b7467
Contents?: true
Size: 697 Bytes
Versions: 6
Compression:
Stored size: 697 Bytes
Contents
# -*- coding: utf-8 -*- require 'spec_helper' require 'turnip_formatter/template/step_exception' module TurnipFormatter class Template describe StepException do let(:template) { ::TurnipFormatter::Template::StepException } let(:exception) do StandardError.new('StepExceptionError').tap do |e| e.set_backtrace('/path/to/error.rb: 10') end end describe '.build' do subject { template.build(exception) } it do should match %r{div class="step_exception"} should match %r{<pre>.*#{exception.message}.*</pre>} should match %r{<li>/path/to/error.rb: 10</li>} end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems