Sha256: 729ee37c04c76abc4e22fc659767c0c6c2791f4b3474dffe4bf8c71eb6c689a2

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TTY::Plugins, '#load' do
  it "activates all plugins" do
    plugin = double(:plugin, :enabled? => false, :load! => true)
    plugins = TTY::Plugins.new
    allow(plugins).to receive(:plugins).and_return([plugin, plugin])

    plugins.load

    expect(plugin).to have_received(:load!).twice
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tty-0.7.0 spec/tty/plugins/load_spec.rb
tty-0.6.1 spec/tty/plugins/load_spec.rb
tty-0.6.0 spec/tty/plugins/load_spec.rb