Sha256: d3fea81c43c15c478944cb7d99959d1756e602a1f36b1487e1d1b46cb550a408

Contents?: true

Size: 684 Bytes

Versions: 3

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
          /^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

3 entries across 3 versions & 1 rubygems

Version Path
reveal-ck-0.6.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-0.5.1 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb
reveal-ck-0.5.0 spec/lib/reveal-ck/commands/listen_to_rebuild_slides_spec.rb