require 'spec_helper' require 'json' describe 'bpm compile' do describe 'complex dependencies' do before do goto_home set_host start_fake(FakeGemServer.new) FileUtils.cp_r(fixtures('projects', 'hello2'), '.') cd home('hello2') end it "should order the packages property with dependencies" do bpm 'rebuild', '--mode=debug' # avoid minification. wait file = File.read home('hello2', 'assets', 'bpm_libs.js') expected = < true err = stderr.read err.should_not include('Could not find eligible') end end end