Sha256: 81649b4033960dd3c684f76de791dcf4a4a33d948dd7dccf519d3bee94c35a77

Contents?: true

Size: 813 Bytes

Versions: 1

Compression:

Stored size: 813 Bytes

Contents

require 'guard/compat/test/helper'
require 'guard/jekyll'

RSpec.describe Guard::Jekyll do
  let(:site) { instance_double("::Jekyll::Site") }

  before do
    allow(Guard::Compat::UI).to receive(:info)
    allow(Guard::Compat::UI).to receive(:error)

    allow(::Jekyll::Site).to receive(:new).and_return(site)
    allow(::Jekyll).to receive(:configuration).and_return({})
  end

  describe '#start' do
    it 'processes the site' do
      expect(site).to receive(:process)
      subject.start
    end
  end

  describe '#run_on_modifications' do
    it 'processes the site' do
      expect(site).to receive(:process)
      subject.run_on_modifications(%w(foo))
    end
  end

  describe '#run_all' do
    it 'processes the site' do
      expect(site).to receive(:process)
      subject.run_all
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
guard-jekyll-1.5.0 spec/lib/guard/jekyll_spec.rb