Skip to content

Commit

Permalink
use specify syntax again
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Mar 25, 2024
1 parent 81cda77 commit b384a6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/acceptance/basic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
let(:manifest) { 'include motd' }
end

describe file('/etc/motd') do
its(:content) { is_expected.to match(%r{Foreman project}) }
its(:content) { is_expected.to match(%r{FQDN:\s+#{host_inventory['fqdn']}}) }
specify do
expect(file('/etc/motd')).to be_file
.and(have_attributes(content: /Foreman project/))
.and(have_attributes(content: /FQDN:\s+#{host_inventory['fqdn']}/))
end
end

0 comments on commit b384a6e

Please sign in to comment.