<commit_before>require File.expand_path(File.dirname(__FILE__) + '/../extra/helper')
require File.expand_path(File.dirname(__FILE__) + '/../fixtures/asset_pack_app/asset_pack_app')

describe 'AssetPack Javascripts' do
  let(:app) { AssetsAppAssetPack }

  it 'can get a javascript file' do
    get '/assets/javascripts/app.js'
    assert_equal 200, last_response.status
    assert_match 'var mainApp = true;', last_response.body
  end

  it 'makes sure that manifest includes other scripts' do
    get '/assets/javascripts/application.js'
    assert_equal 200, last_response.status
    assert_match 'var otherFileVar', last_response.body
  end

  it 'makes sure that coffeescript is compiled' do

  end

  it 'gives 404 for unknown files' do
    get '/assets/javascripts/omg.js'
    assert_equal 404, last_response.status
  end

  context 'for non-defualt options' do
    let(:app) { mock_app }
    it 'can serve from another javascript path'
  end
end
<commit_msg>Added tests for coffee script, added stubbed tests for non-default options<commit_after>require File.expand_path(File.dirname(__FILE__) + '/../extra/helper')
require File.expand_path(File.dirname(__FILE__) + '/../fixtures/asset_pack_app/asset_pack_app')

describe 'AssetPack Javascripts' do
  let(:app) { AssetsAppAssetPack }

  it 'can get a javascript file' do
    get '/assets/javascripts/app.js'
    assert_equal 200, last_response.status
    assert_match 'var mainApp = true;', last_response.body
  end

  it 'makes sure that manifest includes other scripts' do
    get '/assets/javascripts/application.js'
    assert_equal 200, last_response.status
    assert_match 'var otherFileVar', last_response.body
  end

  it 'makes sure that coffeescript is compiled' do
    get '/assets/javascripts/coffee.js'
    assert_equal 200, last_response.status
    assert_match 'coffee = true', last_response.body
  end

  it 'gives 404 for unknown files' do
    get '/assets/javascripts/omg.js'
    assert_equal 404, last_response.status
  end

  context 'for non-defualt options' do
    let(:app) { mock_app }
    it 'can serve from another javascript path'
    it 'can serve a non-default asset pack'
  end
end

{'fraction_non_alphanumeric': 0.09216589861751152, 'fraction_numerical': 0.012442396313364055, 'mean_word_length': 3.9006772009029347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5079589', 'n_tokens_mistral': 720, 'n_tokens_neox': 663, 'n_words': 200}