Sha256: 13e900d90712c2ce37476f144795237fad2af91fb93d085eb44b0b277351317e
Contents?: true
Size: 938 Bytes
Versions: 4
Compression:
Stored size: 938 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, mutant: Devtools::Config::Mutant, 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
4 entries across 4 versions & 1 rubygems