Sha256: 98c7e0052437a97956a9f2928a51c31c1d84e8cd2f340c7cf7820cc3a8878ea8

Contents?: true

Size: 891 Bytes

Versions: 1

Compression:

Stored size: 891 Bytes

Contents

require 'spec_helper'

module RevealCK
  describe PresentationDSL do

    let :dsl_file do
      File.join 'spec', 'data', 'dsl', 'slides.rb'
    end

    let :presentation do
      PresentationDSL.load dsl_file
    end

    describe '#load' do
      it 'can build a RevealCK::Presentation from a file' do
        result = PresentationDSL.load dsl_file
        expect(result).to be_a Presentation
      end
    end

    describe '.author' do
      it 'defines the author in the Presentation' do
        expect(presentation.author).to eq 'Presentation Author'
      end
    end

    describe '.theme' do
      it 'defines the theme in the Presentation' do
        expect(presentation.theme).to eq 'night'
      end
    end

    describe '.title' do
      it 'defines the title in the Presentation' do
        expect(presentation.title).to eq 'Presentation Title'
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reveal-ck-0.1.6 spec/lib/reveal-ck/presentation_dsl_spec.rb