Sha256: c2cd651e00c720eb950742dd1c414c385160d6e3acf617e65e86021e15d28c2e
Contents?: true
Size: 687 Bytes
Versions: 10
Compression:
Stored size: 687 Bytes
Contents
require 'spec_helper' describe Hash do describe 'markdownified!' do let(:hash) { { something: 'hello **world**', something_else: '`the code`', other: '_foo_' } } context 'without options' do before { hash.markdownified! :something, :something_else } it { expect(hash).to eq other: "_foo_", something: "<p>hello <strong>world</strong></p>\n", something_else: "<p><code>the code</code></p>\n" } end context 'with options' do before { hash.markdownified! :something, :something_else, one_liner: true } it { expect(hash).to eq other: "_foo_", something: "hello <strong>world</strong>", something_else: "<code>the code</code>" } end end end
Version data entries
10 entries across 10 versions & 1 rubygems