Sha256: 24b2d72b137c4d919094d869cd8705c041142b0ecfeb8c6a86a57cfc19c9c529
Contents?: true
Size: 374 Bytes
Versions: 1
Compression:
Stored size: 374 Bytes
Contents
require 'erb' require 'rspec/core/formatters/snippet_extractor' module TurnipFormatter class Template module StepSource def self.build(location) @snippet_extractor ||= ::RSpec::Core::Formatters::SnippetExtractor.new '<pre class="source"><code class="ruby">' + @snippet_extractor.snippet([location]) + '</code></pre>' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
turnip_formatter-0.0.3 | lib/turnip_formatter/template/step_source.rb |