File: camelCaseFunction_spec.rb

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (10 lines) | stat: -rw-r--r-- 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

require 'spec_helper'

describe 'camelCaseFunction' do
  it { is_expected.not_to be_nil }
  it { is_expected.to run.with_params.and_raise_error(Puppet::ParseError, /Requires 1 argument/) }
  it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError, /Argument must be a string/) }
  it { is_expected.to run.with_params('test').and_return('test') }
end