Sha256: ecde51d38e42e7efd6f166c43553258e7eb17eb727d117f64227dfbc1a43474b
Contents?: true
Size: 731 Bytes
Versions: 6
Compression:
Stored size: 731 Bytes
Contents
require 'rails_helper' describe Kuroko2::JobDefinitionsHelper do describe '#first_line' do subject { first_line(text) } let(:line) { 'First Line' } context 'multi line text' do let(:text) do <<-EOF.strip_heredoc #{line} Additional EOF end it { is_expected.to eq line } end context 'single line text' do let(:text) { line } it { is_expected.to eq line } end end describe '#markdown_format' do subject { markdown_format(text) } let(:text) do <<-EOF.strip_heredoc # Title LGTM EOF end it { is_expected.to match %r(<h1>Title</h1>) } it { is_expected.to match %r(LGTM) } end end
Version data entries
6 entries across 6 versions & 1 rubygems