summaryrefslogtreecommitdiffstats
path: root/spec/unit/other/transaction.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-29 12:56:02 -0600
committerLuke Kanies <luke@madstop.com>2008-02-29 12:56:02 -0600
commite008b02ae04594bd53a9aa29c24961a7d9d9763d (patch)
treeb02092009173c2ef1933a9b8e1c1149c3af40829 /spec/unit/other/transaction.rb
parent65b72676aef2d58314f546eb31780d1b9925b9b3 (diff)
downloadpuppet-e008b02ae04594bd53a9aa29c24961a7d9d9763d.tar.gz
puppet-e008b02ae04594bd53a9aa29c24961a7d9d9763d.tar.xz
puppet-e008b02ae04594bd53a9aa29c24961a7d9d9763d.zip
Fixing #1110 -- transactions now always make sure
their tags are arrays.
Diffstat (limited to 'spec/unit/other/transaction.rb')
-rwxr-xr-xspec/unit/other/transaction.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/other/transaction.rb b/spec/unit/other/transaction.rb
index e277a24c0..0db470d26 100755
--- a/spec/unit/other/transaction.rb
+++ b/spec/unit/other/transaction.rb
@@ -25,4 +25,9 @@ describe Puppet::Transaction, " when determining tags" do
@transaction.tags = %w{one two}
@transaction.tags.should == %w{one two}
end
+
+ it "should always convert assigned tags to an array" do
+ @transaction.tags = "one::two"
+ @transaction.tags.should == %w{one::two}
+ end
end