2011-11-25 21:18:06 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'sprockets' do
|
|
|
|
it 'should pull in the code via sprockets' do
|
|
|
|
files = %x{bin/jasmine-headless-webkit -l -j spec/jasmine/with_sprockets_includes/with_sprockets_includes.yml}
|
|
|
|
$?.exitstatus.should == 0
|
|
|
|
files.lines.to_a.should contain_in_order_in_file_list(
|
2011-12-05 23:49:52 +00:00
|
|
|
'assets/application.js.erb: unsupported format',
|
2011-11-25 21:18:06 +00:00
|
|
|
'vendor/assets/javascripts/jquery.js',
|
|
|
|
'templates/that.jst.ejs',
|
|
|
|
'templates/this.jst',
|
|
|
|
'assets/things/required.js',
|
|
|
|
'assets/things/code.js',
|
|
|
|
'assets/things/subcode/more_code.js',
|
|
|
|
'spec_helper.js',
|
|
|
|
'spec/things/code_spec.js'
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|