source: src/puppetcode/environments/test/modules/stdlib/spec/functions/any2array_spec.rb@ 04de4a4

0.5 app-cordova debian/bullseye debian/jessie
Last change on this file since 04de4a4 was 1c22429, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago
  • gnuboat_epd adds the apt repository from gnuboat to install epd-fuse package
  • Property mode set to 100755
File size: 809 bytes
Line 
1require 'spec_helper'
2
3describe "any2array" do
4 it { is_expected.not_to eq(nil) }
5 it { is_expected.to run.with_params().and_return([]) }
6 it { is_expected.to run.with_params(true).and_return([true]) }
7 it { is_expected.to run.with_params('one').and_return(['one']) }
8 it { is_expected.to run.with_params('one', 'two').and_return(['one', 'two']) }
9 it { is_expected.to run.with_params([]).and_return([]) }
10 it { is_expected.to run.with_params(['one']).and_return(['one']) }
11 it { is_expected.to run.with_params(['one', 'two']).and_return(['one', 'two']) }
12 it { is_expected.to run.with_params({}).and_return([]) }
13 it { is_expected.to run.with_params({ 'key' => 'value' }).and_return(['key', 'value']) }
14 it { is_expected.to run.with_params({ 'key' => 'value' }).and_return(['key', 'value']) }
15end
Note: See TracBrowser for help on using the repository browser.