spec/mastalk_spec.rb in mastalk-0.5.6 vs spec/mastalk_spec.rb in mastalk-0.5.7

- old
+ new

@@ -164,9 +164,17 @@ it 'outputs the youtube embed video' do expect(subject.to_html).to include('https://www.youtube.com/embed/oZ0_U108aZw?rel=0') end end + context 'vimeo video' do + let(:source) { "$~vimeo_video145743834~$" } + + it 'pre-processes correctly' do + expect(subject.to_html).to include('https://player.vimeo.com/video/145743834?portrait=0&title=0&byline=0') + end + end + context 'block with media and content' do let(:source) { '$bl $bl_c Content bl_c$ $bl_m bl_m$ bl$' } let(:expected) do %(<div class="l-block">\n <div class="l-block__content"> <div class="panel panel--block"> Content </div></div><div class="l-block__media"> </div>\n</div>\n)