<commit_before>require "test_helper"
include Warden::Test::Helpers

feature "CanUserMessage" do

  scenario "should message another user", js: true do

    @user1 = FactoryGirl.create(:user)
    @user2 = FactoryGirl.create(:user)

    login_as @user1

    visit message_new_path(@user2)

    send_message("hola trololo", "hola mundo")
    page.must_have_content body
    page.must_have_content "Mover mensaje a papelera"

    send_message("What a nice emoji😀!What a nice emoji😀!What a nice emoji😀!What a nice emoji😀!What a nice emoji😀!")
    page.must_have_content reply<commit_msg>[tests] One emoji is enough<commit_after>require "test_helper"
include Warden::Test::Helpers

feature "CanUserMessage" do

  scenario "should message another user", js: true do

    @user1 = FactoryGirl.create(:user)
    @user2 = FactoryGirl.create(:user)

    login_as @user1

    visit message_new_path(@user2)

    send_message("hola trololo", "hola mundo")
    page.must_have_content body
    page.must_have_content "Mover mensaje a papelera"

    send_message("What a nice emoji😀!")
    page.must_have_content reply
{'fraction_non_alphanumeric': 0.09800362976406533, 'fraction_numerical': 0.007259528130671506, 'mean_word_length': 4.542713567839196, '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': '2743585', 'n_tokens_mistral': 372, 'n_tokens_neox': 377, 'n_words': 95}