]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/stdlib/spec/unit/puppet/type/anchor_spec.rb
add puppet stdlib
[dsa-puppet.git] / modules / stdlib / spec / unit / puppet / type / anchor_spec.rb
diff --git a/modules/stdlib/spec/unit/puppet/type/anchor_spec.rb b/modules/stdlib/spec/unit/puppet/type/anchor_spec.rb
new file mode 100644 (file)
index 0000000..2030b83
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+
+require 'puppet'
+
+anchor = Puppet::Type.type(:anchor).new(:name => "ntp::begin")
+
+describe anchor do
+  it "should stringify normally" do
+    anchor.to_s.should == "Anchor[ntp::begin]"
+  end
+end