Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 12 lines (9 sloc) 0.365 kb
1 2 3 4 5 6 7 8 9 10 11
require 'spec_helper'

describe 'split' do
  it { should run.with_params('aoeu', 'o').and_return(['a', 'eu']) }
  it { should run.with_params('foo').and_raise_error(Puppet::ParseError) }
  it { should_not run.with_params('foo').and_raise_error(Puppet::DevError) }

  it 'something' do
    expect { subject.call('foo') }.to raise_error(Puppet::ParseError)
  end
end
Something went wrong with that request. Please try again.