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