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/host_extra_validator_spec.rb
require 'spec_helper'
describe 'foreman::plugin::host_extra_validator' do
let(:facts) do
on_supported_os['redhat-7-x86_64']
end
let(:pre_condition) { 'include foreman' }
it { should contain_foreman__plugin('host_extra_validator') }
include_examples 'basic foreman plugin tests', 'host_extra_validator'
end

Also available in: Unified diff