Sha256: 07eef251f90b8861cc0b89498fb1f127486bddccbc593cbc4b26d9522bbe7cab

Contents?: true

Size: 897 Bytes

Versions: 3

Compression:

Stored size: 897 Bytes

Contents

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

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

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

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

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devtools-0.1.26 spec/unit/devtools/project_spec.rb
devtools-0.1.25 spec/unit/devtools/project_spec.rb
devtools-0.1.24 spec/unit/devtools/project_spec.rb