Sha256: 51fb3da1ce288cc1019a21c7ffde27f5734da970379863d6440606b0f7c078d4

Contents?: true

Size: 418 Bytes

Versions: 16

Compression:

Stored size: 418 Bytes

Contents

require 'spec_helper'

describe 'Rake' do
  describe 'load' do
    before do
      Aerosol::Util.stub(:git_sha)
    end

    context 'when the aerosol.rb file does not exist' do
      before do
        File.stub(:exist?).and_return(false)
      end

      it 'raises an error' do
        lambda { Rake::Task['aerosol:load'].invoke }.should raise_error(RuntimeError, 'No aerosol.rb found!')
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aerosol-1.10.0 spec/aerosol/rake_task_spec.rb
aerosol-1.9.2 spec/aerosol/rake_task_spec.rb
aerosol-1.9.1 spec/aerosol/rake_task_spec.rb
aerosol-1.9.0 spec/aerosol/rake_task_spec.rb
aerosol-1.8.0 spec/aerosol/rake_task_spec.rb
aerosol-1.7.1 spec/aerosol/rake_task_spec.rb
aerosol-1.7.0 spec/aerosol/rake_task_spec.rb
aerosol-1.7.0.pre.1 spec/aerosol/rake_task_spec.rb
aerosol-1.6.0 spec/aerosol/rake_task_spec.rb
aerosol-1.5.1 spec/aerosol/rake_task_spec.rb
aerosol-1.3.0 spec/aerosol/rake_task_spec.rb
aerosol-1.2.0 spec/aerosol/rake_task_spec.rb
aerosol-1.1.0 spec/aerosol/rake_task_spec.rb
aerosol-1.0.2 spec/aerosol/rake_task_spec.rb
aerosol-1.0.1 spec/aerosol/rake_task_spec.rb
aerosol-0.5.1 spec/aerosol/rake_task_spec.rb