Skip to content

Commit

Permalink
Merge pull request #74 from puppetlabs/maint_fix_rubocop
Browse files Browse the repository at this point in the history
Fix rubocop warnings
  • Loading branch information
jordanbreen28 authored Mar 4, 2024
2 parents c389717 + 4a71c88 commit 3e1ff27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions spec/unit/puppet/modulebuilder/builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
describe '#initialize' do
context 'when the source does not exist' do
it do
allow(builder).to receive(:file_directory?).with(module_source).and_return(false)
expect { builder.source }.to raise_error(ArgumentError, /does not exist/)
result = builder
allow(result).to receive(:file_directory?).with(module_source).and_return(false)
expect { result.source }.to raise_error(ArgumentError, /does not exist/)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/puppet/modulebuilder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

RSpec.describe Puppet::Modulebuilder do
it 'has a version number' do
expect(Puppet::Modulebuilder::VERSION).not_to be_nil
expect(described_class::VERSION).not_to be_nil
end
end

0 comments on commit 3e1ff27

Please sign in to comment.