diff options
| author | Luke Kanies <luke@madstop.com> | 2009-02-11 13:51:48 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2009-02-11 13:51:48 -0600 |
| commit | a2270b4a4f093c6c4f171dcf0c0e05fe101dd979 (patch) | |
| tree | f0d893dfe6fe13c8c9e0670c1e5459ec336318ba /spec/unit/other | |
| parent | 9bac833dcfdd8d6a00188faee0487e787b7a0101 (diff) | |
| parent | 6b0c1b9170c69829bdf5956d1dec0949dcc08b35 (diff) | |
| download | puppet-a2270b4a4f093c6c4f171dcf0c0e05fe101dd979.tar.gz puppet-a2270b4a4f093c6c4f171dcf0c0e05fe101dd979.tar.xz puppet-a2270b4a4f093c6c4f171dcf0c0e05fe101dd979.zip | |
Merge branch '0.24.x'
Conflicts:
CHANGELOG
spec/unit/type/file/selinux.rb
Diffstat (limited to 'spec/unit/other')
| -rwxr-xr-x | spec/unit/other/transaction.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/unit/other/transaction.rb b/spec/unit/other/transaction.rb deleted file mode 100755 index d2ac26869..000000000 --- a/spec/unit/other/transaction.rb +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env ruby - -require File.dirname(__FILE__) + '/../../spec_helper' - -require 'puppet/transaction' - -describe Puppet::Transaction, " when determining tags" do - before do - @config = Puppet::Resource::Catalog.new - @transaction = Puppet::Transaction.new(@config) - end - - it "should default to the tags specified in the :tags setting" do - Puppet.expects(:[]).with(:tags).returns("one") - @transaction.tags.should == %w{one} - end - - it "should split tags based on ','" do - Puppet.expects(:[]).with(:tags).returns("one,two") - @transaction.tags.should == %w{one two} - end - - it "should use any tags set after creation" do - Puppet.expects(:[]).with(:tags).never - @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 |
