Sha256: becdb369b9ba33c0532e5e8c3f6fac05f9e6065635e2332dc0c56acb83dcbbae
Contents?: true
Size: 888 Bytes
Versions: 11
Compression:
Stored size: 888 Bytes
Contents
require 'spec_helper' describe Flombe do let(:runner) { Flombe::Runner.new } it "should detect if xcode is missing" do runner.stub!(:xcode?).and_return(false) lambda { runner.run }.should raise_error(Flombe::MissingXCodeError) end it "should detect Mac OS X verson" do runner.stub!(:macosx_version).and_return(10.5) lambda { runner.run }.should raise_error(Flombe::BadMacOSXVersionError) end it "should detect that a Flombefile does not exist" do runner.stub!(:flombefile?).and_return(false) lambda { runner.run }.should raise_error(Flombe::NoFlombefileError) end it "should detect if it's trying to be run as root" do runner.stub!(:root?).and_return(true) lambda { runner.run }.should raise_error(Flombe::RunningAsRootError) end it "should run chef-solo" do runner.should_receive(:run_chef) runner.run end end
Version data entries
11 entries across 11 versions & 1 rubygems