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