Sha256: 27cc7eb11360880f5e16d102ddc50773cce42e8cc037d2c3c0195284ead56379

Contents?: true

Size: 814 Bytes

Versions: 22

Compression:

Stored size: 814 Bytes

Contents

require 'spec_helper'

module RevealCK
  module Commands
    describe Generate do
      describe '#run' do
        it 'generates a new set of slides' do
          slides_builder = double
          allow(RevealCK::Builders::SlidesBuilder)
            .to receive(:new)
            .and_return(slides_builder)

          expect(slides_builder).to receive(:prepare)
          expect(slides_builder).to receive(:build)

          generate =
            Generate.new(user_dir: 'user_dir',
                         gem_dir: 'gem_dir',
                         output_dir: 'output_dir',
                         slides_file: 'slides_file')

          expect(generate)
            .to receive(:puts)
            .with("Generating slides for 'slides_file'..")
          generate.run
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.9.2 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.9.1 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.9.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.8.1 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.8.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.7.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.6.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.5.1 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.5.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.4.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.3.1 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.3.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.2.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.1.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.0.1 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-3.0.0 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-0.6.2 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-0.6.1 spec/lib/reveal-ck/commands/generate_spec.rb
reveal-ck-0.6.0 spec/lib/reveal-ck/commands/generate_spec.rb