spec/mastalk_spec.rb in mastalk-0.5.3 vs spec/mastalk_spec.rb in mastalk-0.5.4

- old
+ new

@@ -148,9 +148,17 @@ it 'pre-processes correctly' do expect(subject.to_html).to match(/data-video-id\="3739688349001"/) end end + context 'cost calculator' do + let(:source) {"$~cost-calc1~$"} + + it 'pre-processes correctly' do + expect(subject.to_html).to include('https://www.moneyadviceservice.org.uk/en/cost-calculator-builder/embed/calculators/1') + end + end + context 'when youtube video' do let(:source) { '({oZ0_U108aZw})' } it 'outputs the youtube embed video' do expect(subject.to_html).to include('https://www.youtube.com/embed/oZ0_U108aZw')