Sha256: 179639e26bc3ac3dd69a6e03ca84476b2f8679fe1519dfa5f99065fd6b0d712c
Contents?: true
Size: 976 Bytes
Versions: 2
Compression:
Stored size: 976 Bytes
Contents
#! /usr/bin/env ruby -S rspec require 'spec_helper' require 'puppet' require 'puppet_spec/files' require 'semver' describe Puppet do include PuppetSpec::Files context "#version" do it "should be valid semver" do SemVer.should be_valid Puppet.version end end Puppet::Util::Log.eachlevel do |level| it "should have a method for sending '#{level}' logs" do Puppet.should respond_to(level) end end it "should be able to change the path" do newpath = ENV["PATH"] + File::PATH_SEPARATOR + "/something/else" Puppet[:path] = newpath ENV["PATH"].should == newpath end it "should change $LOAD_PATH when :libdir changes" do one = tmpdir('load-path-one') two = tmpdir('load-path-two') one.should_not == two Puppet[:libdir] = one $LOAD_PATH.should include one $LOAD_PATH.should_not include two Puppet[:libdir] = two $LOAD_PATH.should_not include one $LOAD_PATH.should include two end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-3.0.0.rc8 | spec/unit/puppet_spec.rb |
puppet-3.0.0.rc7 | spec/unit/puppet_spec.rb |