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

Version Path
flombe-0.1.0.12 spec/flombe_spec.rb
flombe-0.1.0.11 spec/flombe_spec.rb
flombe-0.1.0.10 spec/flombe_spec.rb
flombe-0.1.0.9 spec/flombe_spec.rb
flombe-0.1.0.8 spec/flombe_spec.rb
flombe-0.1.0.7 spec/flombe_spec.rb
flombe-0.1.0.6 spec/flombe_spec.rb
flombe-0.1.0.5 spec/flombe_spec.rb
flombe-0.1.0.4 spec/flombe_spec.rb
flombe-0.1.0.3 spec/flombe_spec.rb
flombe-0.1.0.2 spec/flombe_spec.rb