Sha256: 41006b705ebc2cea17dcacacb1f317e6b7167b2844f8d86b36adb72bfb14c4c8

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

# encoding: UTF-8

RSpec.describe Central::Devtools::Project do
  let(:object) { described_class.new(Central::Devtools.root) }

  describe '#init_rspec' do
    subject { object.init_rspec }

    it 'calls the rspec initializer' do
      expect(Central::Devtools::Project::Initializer::Rspec)
        .to receive(:call).with(Central::Devtools.project)
      expect(subject).to be(object)
    end
  end

  {
    devtools: Central::Devtools::Config::Devtools,
    flay: Central::Devtools::Config::Flay,
    flog: Central::Devtools::Config::Flog,
    reek: Central::Devtools::Config::Reek,
    mutant: Central::Devtools::Config::Mutant,
    rubocop: Central::Devtools::Config::Rubocop,
    yardstick: Central::Devtools::Config::Yardstick
  }.each do |name, klass|
    describe "##{name}" do
      subject { object.send(name) }

      specify { should eql(klass.new(Central::Devtools.root.join('config'))) }
    end
  end

  describe '#spec_root' do
    subject { object.spec_root }

    specify { should eql(Central::Devtools.root.join('spec')) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
central-devtools-0.8.4 spec/unit/central/devtools/project_spec.rb
central-devtools-0.8.3 spec/unit/central/devtools/project_spec.rb