Sha256: aa198cced552855faf44344c810fceb63cf749bfdf868b4f6038e890c8d4f45a

Contents?: true

Size: 905 Bytes

Versions: 20

Compression:

Stored size: 905 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[.. .. .. spec_helper])

describe SC::Target, 'pack optimize !!!' do

  include SC::SpecHelpers

  before do
   	@project = temp_project :real_world
    
  end
  
  it "Returns two arrays:  targets that should be loaded packed,  Targets that should be loaded but not packed. In this case it should return one packed and 0 unpacked" do
	target = @project.target_for 'sproutcore/application'
	packed, unpacked = SC::Helpers::PackedOptimizer.optimize(target.required_targets)
	(packed.size + unpacked.size).should eql(1)
  end
  
	
  it "Returns two arrays:  targets that should be loaded packed,  Targets that should be loaded but not packed. In this case there shouln't be any packed target" do
	target = @project.target_for 'sproutcore'
	packed, unpacked = SC::Helpers::PackedOptimizer.optimize(target.required_targets)
	unpacked.size.should eql(1)
  end

end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090407205609 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutit-sproutcore-1.0.0.20090408130025 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutit-sproutcore-1.0.0.20090416161445 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutit-sproutcore-1.0.20090721145236 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1046 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1043 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1042 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1037 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1035 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1031 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1030 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1029 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1027 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1028 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1026 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1025 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1024 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1009 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1008 spec/lib/helpers/packing_optimizer/optimize_spec.rb
sproutcore-1.0.1003 spec/lib/helpers/packing_optimizer/optimize_spec.rb