Sha256: d314af3fee023067e438c15e63a7072899b778acbd94153f0e903b21751d3df6
Contents?: true
Size: 662 Bytes
Versions: 21
Compression:
Stored size: 662 Bytes
Contents
#! /usr/bin/env ruby -S rspec require 'spec_helper' require 'facter' describe "OS Major Release fact" do ['Amazon','CentOS','CloudLinux','Debian','Fedora','OEL','OracleLinux','OVS','RedHat','Scientific','SLC'].each do |operatingsystem| context "on #{operatingsystem} operatingsystems" do it "should be derived from operatingsystemrelease" do Facter.fact(:kernel).stubs(:value).returns("Linux") Facter.fact(:operatingsystem).stubs(:value).returns(operatingsystem) Facter.fact(:operatingsystemrelease).stubs(:value).returns("6.3") Facter.fact(:operatingsystemmajrelease).value.should == "6" end end end end
Version data entries
21 entries across 21 versions & 1 rubygems