Sha256: 6667519dc49190b26ea4dae384d8436b5425400ed5440f27d3b53238d1eba590
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'valise' require 'rhet-butler/configuration' require 'rhet-butler/slide-loader' describe RhetButler::SlideLoader do let :files do Valise::Set.define do stemmed("slides") do rw 'spec_support/fixtures/project' end rw 'spec_support/fixtures/project' handle "config.yaml", :yaml, :hash_merge end end let :configuration do RhetButler::Configuration.new(files) end let :loader do described_class.new(files, configuration) end let :slides do loader.load_slides end it "should parse YAML for the configs" do slides.should have_at_least(1).slides slides.should be_all{|slide| RhetButler::Slide === slide} end it "should have the included slide" do slides.find do |slide| slide.content =~ /included/ end.should_not be_nil end it "should have the slide group" do slides.find do |slide| slide.content =~ /grouped/ end.should_not be_nil end it "should allow sibling inclusions" do expect do slides end.not_to raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rhet-butler-0.5.0 | spec/slide-loader.rb |