uses rspec expect instead of a lambda for compiler test
Works with puppet 3.x