Sha256: 0be41696a6962b64c7d1458a5a6bbca1d39f00f2f8181d1f5221039d1e38c91d

Contents?: true

Size: 683 Bytes

Versions: 4

Compression:

Stored size: 683 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
          /^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

4 entries across 4 versions & 1 rubygems

Version Path
reveal-ck-3.0.1 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-3.0.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-0.6.2 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-0.6.1 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb