Unverified Commit 9fe75ee4 authored by Steven Danna's avatar Steven Danna
Browse files

Stub check for gcc-4.8



Whether or not this exists changes based on where the tests are
running.

Signed-off-by: default avatarSteven Danna <steve@chef.io>
parent 1986a892
...@@ -345,6 +345,7 @@ module Omnibus ...@@ -345,6 +345,7 @@ module Omnibus
before do before do
# sles identifies as suse # sles identifies as suse
stub_ohai(platform: "suse", version: "11.4") stub_ohai(platform: "suse", version: "11.4")
allow(subject).to receive(:which).with("gcc-4.8").and_return(false)
end end
it "sets the defaults" do it "sets the defaults" do
expect(subject.with_standard_compiler_flags).to eq( expect(subject.with_standard_compiler_flags).to eq(
...@@ -384,6 +385,7 @@ module Omnibus ...@@ -384,6 +385,7 @@ module Omnibus
before do before do
# sles identifies as suse # sles identifies as suse
stub_ohai(platform: "suse", version: "12.2") stub_ohai(platform: "suse", version: "12.2")
allow(subject).to receive(:which).with("gcc-4.8").and_return(false)
end end
it "sets the defaults" do it "sets the defaults" do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment