Sha256: a7562b2aefcdb17dfb9627a040220f401b814102c0fe7a73c7cca4edaf4fc000
Contents?: true
Size: 913 Bytes
Versions: 1
Compression:
Stored size: 913 Bytes
Contents
require 'spec_helper' describe CaptainHoog::PluginList do describe 'instance methods' do it 'provides #plugins method' do expect(described_class.new).to respond_to(:plugins) end it 'provides #has?' do expect(described_class.new).to respond_to(:has?) end describe '#plugins' do let(:plugin_dir_path) do File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'plugins', 'test_plugins', 'passing') end let(:config) do { 'exclude' => %w(mat git log), 'pre-commit' => %w(rspec), 'plugins_dir' => plugin_dir_path } end subject do described_class.new(config: config) end it 'returns available plugins' do expect(subject.plugins).to eq %w(rspec) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
captain_hoog-1.0 | spec/lib/captain_hoog/plugin_list_spec.rb |