max_spec.rb 437 B

123456789101112131415161718
  1. require 'spec_helper_acceptance'
  2. describe 'max function' do
  3. describe 'success' do
  4. pp = <<-DOC
  5. $o = max("the","public","art","galleries")
  6. notice(inline_template('max is <%= @o.inspect %>'))
  7. DOC
  8. it 'maxs arrays' do
  9. apply_manifest(pp, :catch_failures => true) do |r|
  10. expect(r.stdout).to match(%r{max is "the"})
  11. end
  12. end
  13. end
  14. describe 'failure' do
  15. it 'handles no arguments'
  16. end
  17. end