jasmine-headless-webkit/spec/integration/sprockets_spec.rb

24 lines
782 B
Ruby
Raw Permalink Normal View History

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(
'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',
'things/jquery.string.js',
2011-11-25 21:18:06 +00:00
'assets/things/required.js',
'assets/things/code.js',
'assets/things/subcode/more_code.js',
'spec_helper.js',
'spec/things/code_spec.js'
)
files.lines.to_a.any? { |line| line['assets/jquery.string.js: unsupported format'] }.should be_false
2011-11-25 21:18:06 +00:00
end
end