Sha256: f2eb8bfd6362e0ec34e7f4828806557feaa4a24cea0da1dcd6474052a08c9a35
Contents?: true
Size: 816 Bytes
Versions: 20
Compression:
Stored size: 816 Bytes
Contents
require 'spec_helper' module RevealCK module Builders describe UserFiles do describe '#all' do let :stand_in_user_files_dir do File.join(Dir.pwd, 'files', 'reveal.js') end let :user_files do UserFiles.new(dir: stand_in_user_files_dir) end describe '#files' do it 'it names the files that will be copied into a presentation' do user_css = user_files.files.select do |file| file.include?('css/reveal.css') end expect(user_css.size).to eq 1 end end describe '#dir' do it 'it names the directory where the files can be found' do expect(user_files.dir).to eq stand_in_user_files_dir end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems