<commit_before>require 'spec_helper'

describe JobsController do

  it "should create a job" do
    post :create, format: :json, title: "Developer"
    Jobs.last.title.should eq("Developer")
  end
end<commit_msg>full test for submitted job<commit_after>require 'spec_helper'

describe JobsController do

  it "should create a job" do
    post :create, format: :json, title: "Developer"
    assert_response 200
    body_json = JSON.parse(response.body)
    body_json["status"].should eq("submitted")
    Jobs.last.title.should eq("Developer")
  end
end
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.0054446460980036296, 'mean_word_length': 4.465346534653466, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3734929', 'n_tokens_mistral': 186, 'n_tokens_neox': 168, 'n_words': 51}