Sha256: 240e758f380161fc3a04a89ac4cbe46600ae7c459bdf83b9923719151d103a11
Contents?: true
Size: 941 Bytes
Versions: 3
Compression:
Stored size: 941 Bytes
Contents
require 'spec_helper' require 'turnip_formatter/printer/step_extra_args' module TurnipFormatter::Printer describe StepExtraArgs do context 'Turnip::Table' do describe '.print_out' do let(:string) do ::Turnip::Table.new([ ["State", "Money"], ["<Tokushima>", "555"], ["<Okinawa>", "368"] ]) end subject { StepExtraArgs.print_out([string]) } it { should match %r{<td>State</td>[[:space:]]*<td>Money</td>} } it { should match %r{<td><Tokushima></td>[[:space:]]*<td>555</td>} } it { should match %r{<td><Okinawa></td>[[:space:]]*<td>368</td>} } end end context 'String' do describe '.print_out' do let(:string) { 'a<a>a' } subject { StepExtraArgs.print_out([string]) } it { should match %r{<pre class="multiline">a<a>a</pre>} } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems