<commit_before># -*- coding: utf-8 -*-
require File.dirname(__FILE__) + '/../spec_helper'

describe Message do
  before do
    cleanup_db

    @room = Room.new(:title => 'test room').Tap{|x| x.save! }
    @user = User.new(:name => 'test user', :screen_name => 'test').tap{|x| x.save! }

    @other_room = Room.new(:title => "dummy_room")
    @other_room.save!

    @messages = (0..10).map do|i|
      Message.new(:body => "dummy", :user => @user, :room => @other_room).save!<commit_msg>replace to mongoid (in progress) specs, Room default deleted = false  refs #686<commit_after># -*- coding: utf-8 -*-
require File.dirname(__FILE__) + '/../spec_helper'

describe Message do
  before do
    cleanup_db

    @room = Room.new(:title => 'test room').tap{|x| x.save! }
    @user = User.new(:name => 'test user', :screen_name => 'test').tap{|x| x.save! }

    @other_room = Room.new(:title => "dummy_room")
    @other_room.save!

    @messages = (0..10).map do|i|
      Message.new(:body => "dummy", :user => @user, :room => @other_room).save!
{'fraction_non_alphanumeric': 0.20520231213872833, 'fraction_numerical': 0.010597302504816955, 'mean_word_length': 3.402542372881356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '4198823', 'n_tokens_mistral': 381, 'n_tokens_neox': 359, 'n_words': 84}