<commit_before>require File.dirname(__FILE__) + '/../spec_helper'

describe Story do

  requires_presence_of Story, :headline

  it { Factory(:story).should belong_to(:pitch) }
  it { Factory(:story).should belong_to(:user) }

  describe "to support STI" do
    it "descends from NewItem" do
      Story.ancestors.include?(NewsItem)
    end
  end

  describe "status" do
    before(:each) do
      @story = Factory(:story)
    end

    it "should be initialized as 'draft'" do<commit_msg>Correct missing assertion<commit_after>require File.dirname(__FILE__) + '/../spec_helper'

describe Story do

  requires_presence_of Story, :headline

  it { Factory(:story).should belong_to(:pitch) }
  it { Factory(:story).should belong_to(:user) }

  describe "to support STI" do
    it "descends from NewItem" do
      Story.ancestors.should include(NewsItem)
    end
  end

  describe "status" do
    before(:each) do
      @story = Factory(:story)
    end

    it "should be initialized as 'draft'" do
{'fraction_non_alphanumeric': 0.11167002012072434, 'fraction_numerical': 0.0, 'mean_word_length': 3.5642201834862384, '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': '7026517', 'n_tokens_mistral': 320, 'n_tokens_neox': 304, 'n_words': 88}