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

Version Path
reveal-ck-3.9.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.8.1 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.8.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.7.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.6.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.5.1 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.5.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.4.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.3.1 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.3.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.2.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.1.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb