<commit_before>require 'spec_helper'

describe Map do

  before(:all) do
    @quota_in_bytes = 524288000
    @table_quota    = 500
    @user     = create_user(:quota_in_bytes => @quota_in_bytes, :table_quota => @table_quota)
  end

  context "layer setups" do
    
    it "should allow to be linked to a table" do
      table = Table.new
      table.user_id = @user.id
      table.save
      map = Map.create(:user_id => @user.id, :table_id => table.id)
      map.reload
      table.reload

      table.map.should == map
      map.table.should == table
    end
  
  end
end<commit_msg>Fixes map specs<commit_after>require 'spec_helper'

describe Map do

  before(:all) do
    @quota_in_bytes = 524288000
    @table_quota    = 500
    @user     = create_user(:quota_in_bytes => @quota_in_bytes, :table_quota => @table_quota)
  end

  context "layer setups" do

    it "should allow to be linked to a table" do
      table = Table.new
      table.user_id = @user.id
      table.save
      map = Map.create(:user_id => @user.id, :table_id => table.id)
      map.reload
      table.reload

      table.map.should == map
      map.table.should include(table)
    end

  end
end
{'fraction_non_alphanumeric': 0.10238907849829351, 'fraction_numerical': 0.020477815699658702, 'mean_word_length': 2.5119760479041915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5289561', 'n_tokens_mistral': 437, 'n_tokens_neox': 405, 'n_words': 101}