Sha256: 159367f76626a95868515647cc3f8444f40ff45a9a904c53ab54d084dee2a037
Contents?: true
Size: 935 Bytes
Versions: 4
Compression:
Stored size: 935 Bytes
Contents
#! /usr/bin/env ruby -S rspec require 'spec_helper' describe Puppet::Status do it "should implement find" do Puppet::Status.indirection.find( :default ).should be_is_a(Puppet::Status) Puppet::Status.indirection.find( :default ).status["is_alive"].should == true end it "should default to is_alive is true" do Puppet::Status.new.status["is_alive"].should == true end it "should return a pson hash" do Puppet::Status.new.status.to_pson.should == '{"is_alive":true}' end it "should render to a pson hash" do PSON::pretty_generate(Puppet::Status.new).should =~ /"is_alive":\s*true/ end it "should accept a hash from pson" do status = Puppet::Status.new( { "is_alive" => false } ) status.status.should == { "is_alive" => false } end it "should have a name" do Puppet::Status.new.name end it "should allow a name to be set" do Puppet::Status.new.name = "status" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
puppet-3.0.0.rc8 | spec/unit/status_spec.rb |
puppet-3.0.0.rc7 | spec/unit/status_spec.rb |
puppet-3.0.0.rc5 | spec/unit/status_spec.rb |
puppet-3.0.0.rc4 | spec/unit/status_spec.rb |