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

describe MockedFixtures::MockFixtures do
  
  before(:all) do
    # just making sure we don't hit the database at all
    ActiveRecord::Base.connection.disconnect! rescue nil
  end
  
  before(:each) do
    @fixture_path = Test::Unit::TestCase.fixture_path
  end  

  it "should return primary key for fixture table" do<commit_msg>added after block to reconnect db now that db will be connected<commit_after>require File.dirname(__FILE__) + '/spec_helper'

describe MockedFixtures::MockFixtures do
  
  before(:all) do
    # just making sure we don't hit the database at all
    ActiveRecord::Base.connection.disconnect! rescue nil
  end
  
  after(:all) do    
    ActiveRecord::Base.connection.reconnect! rescue nil
  end
  
  before(:each) do
    @fixture_path = Test::Unit::TestCase.fixture_path
  end  

  it "should return primary key for fixture table" do
{'fraction_non_alphanumeric': 0.08207343412526998, 'fraction_numerical': 0.0, 'mean_word_length': 4.010810810810811, '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': '3365643', 'n_tokens_mistral': 280, 'n_tokens_neox': 273, 'n_words': 88}