Sha256: fac616b0a3ea864e7df926a9f50449e669c742897f0c653fa2110bf9368af3be

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'spec_helper'

describe TTY::Plugins, '#load' do
  let(:object)  { described_class }
  let(:plugin)  { double(:plugin, :enabled? => false) }
  let(:plugins) { [plugin, plugin]}

  subject { object.new }

  before {
    subject.stub(:plugins).and_return(plugins)
  }

  it "activates all plugins" do
    plugin.should_receive(:load!).twice()
    subject.load
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tty-0.0.11 spec/tty/plugins/load_spec.rb
tty-0.0.10 spec/tty/plugins/load_spec.rb