Sha256: e054c97fb88ee4d6769285e89c7320cafcefa4cde338090412a24b30999fdb12

Contents?: true

Size: 567 Bytes

Versions: 12

Compression:

Stored size: 567 Bytes

Contents

require 'spec_helper'

describe SCSSLint::Plugins::LinterDir do
  let(:plugin_directory) { File.expand_path('../../fixtures/plugins', __FILE__) }
  let(:subject) { described_class.new(plugin_directory) }

  describe '#config' do
    it 'returns empty configuration' do
      subject.config.should == SCSSLint::Config.new({})
    end
  end

  describe '#load' do
    it 'requires each file in the plugin directory' do
      subject.should_receive(:require)
             .with(File.join(plugin_directory, 'linter_plugin.rb')).once

      subject.load
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
scss_lint-0.51.0 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.50.3 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.50.2 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.50.1 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.50.0 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.49.0 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.48.0 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.47.1 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.47.0 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.46.0 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.45.0 spec/scss_lint/plugins/linter_dir_spec.rb
scss_lint-0.44.0 spec/scss_lint/plugins/linter_dir_spec.rb