Newer
Older
puppet-interfaces / spec / defines / iface_spec.rb
@Andreas Jaggi Andreas Jaggi on 14 Aug 2012 418 bytes Fix quoting
require 'spec_helper'

describe 'interfaces::iface' do
  let(:title) { 'lo' }
  let(:params) { { :family => 'inet', :method => 'loopback', :auto => 1 } }

  it {
    should contain_interfaces__auto('lo')
    should contain_concat__fragment('interfaces::iface_lo').with_target('/etc/network/interfaces')
    should contain_concat__fragment('interfaces::iface_lo').with_content("iface lo inet loopback\n\t\n\n")
  }
end