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

« back to all changes in this revision

Viewing changes to spec/unit/type/whit_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:
1
1
#! /usr/bin/env ruby
2
2
require 'spec_helper'
3
3
 
4
 
whit = Puppet::Type.type(:whit).new(:name => "Foo::Bar")
 
4
whit = Puppet::Type.type(:whit)
5
5
 
6
6
describe whit do
7
7
  it "should stringify in a way that users will regognise" do
8
 
    whit.to_s.should == "Foo::Bar"
 
8
    whit.new(:name => "Foo::Bar").to_s.should == "Foo::Bar"
9
9
  end
10
10
end