Sha256: 0e484d914c4136000a8f792c7bb5e1b19580a356d6c64c6045e311c4aa2ac89e

Contents?: true

Size: 1.22 KB

Versions: 35

Compression:

Stored size: 1.22 KB

Contents

#
# Author:: Serdar Sutay (<dan@opscode.com>)
# Copyright:: Copyright (c) 2013 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require File.expand_path('../../spec_helper', __FILE__)
require 'chef/mixin/shell_out'
require 'chef/version'
require 'ohai/version'

describe "Chef Versions" do
  include Chef::Mixin::ShellOut
  let(:chef_dir) { File.join(File.dirname(__FILE__), "..", "..") }

  binaries = [ "chef-client", "chef-shell", "chef-apply", "knife", "chef-solo" ]

  binaries.each do |binary|
    it "#{binary} version should be sane" do
      expect(shell_out!("ruby #{File.join("bin", binary)} -v", :cwd => chef_dir).stdout.chomp).to include("Chef: #{Chef::VERSION}")
    end
  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
chef-12.6.0 spec/functional/version_spec.rb
chef-12.6.0-universal-mingw32 spec/functional/version_spec.rb
chef-12.5.1-universal-mingw32 spec/functional/version_spec.rb
chef-12.5.1 spec/functional/version_spec.rb
chef-12.4.3-universal-mingw32 spec/functional/version_spec.rb
chef-12.4.3 spec/functional/version_spec.rb
chef-12.4.2-universal-mingw32 spec/functional/version_spec.rb
chef-12.4.2 spec/functional/version_spec.rb
chef-12.5.0.alpha.1 spec/functional/version_spec.rb
chef-12.4.1-universal-mingw32 spec/functional/version_spec.rb
chef-12.4.1 spec/functional/version_spec.rb
chef-12.4.0 spec/functional/version_spec.rb
chef-12.4.0-universal-mingw32 spec/functional/version_spec.rb
chef-12.4.0.rc.2 spec/functional/version_spec.rb
chef-12.4.0.rc.2-universal-mingw32 spec/functional/version_spec.rb
chef-12.4.0.rc.0 spec/functional/version_spec.rb
chef-12.4.0.rc.0-universal-mingw32 spec/functional/version_spec.rb
chef-12.3.0-x86-mingw32 spec/functional/version_spec.rb
chef-12.3.0 spec/functional/version_spec.rb
chef-12.3.0.rc.0-x86-mingw32 spec/functional/version_spec.rb