Sha256: 977ce1a87e4b3e5b13ca505b51fb2644ea11e7a6431d7a6db71bc127c8e6eeb4
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
describe Stevenson::OutputFilter::Jekyll do let(:options) { {} } let(:temporary_directory) { '/tmp/directory' } let(:template) { double(:template, local_directory: temporary_directory) } subject { described_class.new(template.local_directory, options) } describe '#output' do it "should change into the template's directory" do expect(Dir).to receive(:chdir).with(temporary_directory) subject.output end it "should build jekyll" do allow(Dir).to receive(:chdir).with(temporary_directory).and_yield expect(subject).to receive(:`).with("jekyll b") subject.output end it 'outputs a jekyll compiled directory' do allow(Dir).to receive(:chdir).with(temporary_directory) expect(subject.output).to eq File.join(temporary_directory, '_site') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stevenson-2.3.1 | spec/lib/output_filters/jekyll_spec.rb |