diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-03-03 11:59:14 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-03-03 11:59:14 +1100 |
| commit | 281448fb47a7c88bf8d1c3222d03264ecfaeb183 (patch) | |
| tree | 1e8bb91ed20fd1385c63cff8d5aa77db7eb1f68d /spec | |
| parent | f1d75c8bc2604ea396c6d88ba7eef866f48f6046 (diff) | |
| parent | ba803a1fb8190997f277b83d50c531b446b2a67f (diff) | |
Merge branch '0.24.x' of git://reductivelabs.com/puppet into 0.24.x
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/other/transaction.rb | 5 | ||||
| -rwxr-xr-x | spec/unit/parser/resource.rb | 6 |
2 files changed, 11 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 diff --git a/spec/unit/parser/resource.rb b/spec/unit/parser/resource.rb index 035590341..9ce7b391b 100755 --- a/spec/unit/parser/resource.rb +++ b/spec/unit/parser/resource.rb @@ -67,6 +67,12 @@ describe Puppet::Parser::Resource do @resource = Puppet::Parser::Resource.new(:type => "mydefine", :title => "whatever", :scope => @scope, :source => @source) end + it "should do nothing if it has already been finished" do + @resource.finish + @resource.expects(:add_metaparams).never + @resource.finish + end + it "should copy metaparams from its scope" do @scope.setvar("noop", "true") |
