Last change
on this file since 30960 was 30960, checked in by davidb, 7 years ago |
Switch to using Puppet to provision machine. Strongly based on files developed for spark-hdfs cluster
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | require 'spec_helper'
|
---|
2 |
|
---|
3 | describe 'chop' do
|
---|
4 | it { is_expected.not_to eq(nil) }
|
---|
5 | it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError) }
|
---|
6 | it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError) }
|
---|
7 | it {
|
---|
8 | pending("Current implementation ignores parameters after the first.")
|
---|
9 | is_expected.to run.with_params("a", "b").and_raise_error(Puppet::ParseError)
|
---|
10 | }
|
---|
11 | it { is_expected.to run.with_params("one").and_return("on") }
|
---|
12 | it { is_expected.to run.with_params("one\n").and_return("one") }
|
---|
13 | it { is_expected.to run.with_params("one\n\n").and_return("one\n") }
|
---|
14 | it { is_expected.to run.with_params(["one\n", "two", "three\n"]).and_return(["one", "tw", "three"]) }
|
---|
15 |
|
---|
16 | it { is_expected.to run.with_params(AlsoString.new("one")).and_return("on") }
|
---|
17 | it { is_expected.to run.with_params(AlsoString.new("one\n")).and_return("one") }
|
---|
18 | it { is_expected.to run.with_params(AlsoString.new("one\n\n")).and_return("one\n") }
|
---|
19 | it { is_expected.to run.with_params([AlsoString.new("one\n"), AlsoString.new("two"), "three\n"]).and_return(["one", "tw", "three"]) }
|
---|
20 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.