1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'chomp function' do
6 it 'should eat the newline' do
10 fail("Size of ${input} is not 5.")
12 $output = chomp($input)
13 if size($output) != 4 {
14 fail("Size of ${input} is not 4.")
18 apply_manifest(pp, :catch_failures => true)