Project

General

Profile

« Previous | Next » 

Revision 005ffdfd

Added by Ewoud Kohl van Wijngaarden over 7 years ago

Use rspec shared examples to reduce duplication

View differences:

spec/classes/plugin/expire_hosts_spec.rb
require 'spec_helper'
describe 'foreman::plugin::expire_hosts' do
let(:facts) do
on_supported_os['redhat-7-x86_64']
end
let(:pre_condition) { 'include foreman' }
it { should contain_foreman__plugin('expire_hosts') }
include_examples 'basic foreman plugin tests', 'expire_hosts'
end

Also available in: Unified diff