Sha256: ce359706dce59ceea99a341f6daffd5cf8193f80a90e69fd4dcf836df7b51905
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turnip_formatter-0.0.3 | spec/turnip_formatter/template/step_exception_spec.rb |
turnip_formatter-0.0.2 | spec/turnip_formatter/template/step_exception_spec.rb |