Sha256: 6f92d6d2b34e2585318d469131d4f02c7cdc7f24733fd3a0d95c9603b3f3ec06
Contents?: true
Size: 942 Bytes
Versions: 19
Compression:
Stored size: 942 Bytes
Contents
require 'spec_helper' module RevealCK module Render describe Scope do describe '#contents_of' do let :quote_file do spec_data 'render', 'scope', 'quote' end let :scope do Scope.new(dir: Dir.pwd, config: {}) end it 'provides access to a file on the file system' do quote = scope.contents_of quote_file expect(quote).to include 'begin it' end end describe '#css_files' do let :css_dir do spec_data 'render', 'scope', 'css_dir' end let :scope do Scope.new(dir: css_dir, config: {}) end it 'can return a list of the css files' do css_files = scope.css_files expect(css_files.size).to eq 2 expect(css_files).to include 'css/custom.css' expect(css_files).to include 'css/nested/custom.css' end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems