Sha256: 2649a7e10d2c5272e3465d23f215bad9d9b12b0473a74f2d90291ebb03345b7e

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

require 'spec_helper'
require 'exogenesis/passengers/vim_plug'

describe VimPlug do
  let(:config) { double }
  let(:executor) { executor_double }

  subject { VimPlug.new(config, executor) }

  describe :up do
    it 'should install and update plugins' do
      expect(executor).to receive(:execute_interactive).with('Installing and Updating Vim plugins', 'vim +PlugUpdate\! +qall')
      subject.up
    end
  end

  describe :clean do
    it 'should interactively execute BundleClean' do
      executor.should_receive(:execute_interactive).with('Cleaning', 'vim +PlugClean\! +qall')
      subject.clean
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exogenesis-1.0.0 spec/unit/vim_plug_spec.rb