~ubuntu-branches/ubuntu/wily/puppet/wily

« back to all changes in this revision

Viewing changes to spec/unit/type_spec.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2014-04-17 14:50:28 UTC
  • mfrom: (3.1.59 sid)
  • Revision ID: package-import@ubuntu.com-20140417145028-j3p3dwvp8ggpzvaf
Tags: 3.5.1-1
ImportedĀ upstreamĀ releaseĀ 3.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
347
347
    end
348
348
  end
349
349
 
 
350
 
 
351
  describe "when defining a parent on a newtype" do
 
352
    it "prints a deprecation message" do
 
353
      Puppet.expects(:deprecation_warning)
 
354
      type = Puppet::Type.newtype(:test_with_parent, :parent => Puppet::Type) do
 
355
        newparam(:name) do end
 
356
      end
 
357
    end
 
358
  end
 
359
 
 
360
 
350
361
  describe "when initializing" do
351
362
    describe "and passed a Puppet::Resource instance" do
352
363
      it "should set its title to the title of the resource if the resource type is equal to the current type" do