Sha256: 16ae6ab84a7cde63273a580df093cda9be7e57269d66582fd12c03ab03d11263
Contents?: true
Size: 684 Bytes
Versions: 12
Compression:
Stored size: 684 Bytes
Contents
require 'spec_helper' require 'listen' module RevealCK module Commands describe ListenToRebuildSlides do describe '#run' do let :current_directory do '.' end let :generated_slides do %r{^slides/.+$} end it 'sets up ::Listen to run when things change' do listener = double expect(::Listen) .to(receive(:to)) .with(current_directory, ignore: generated_slides) .once .and_return(listener) expect(listener) .to(receive(:start)) ListenToRebuildSlides.new(double('ui')).run end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems