require 'test_helper'

class RussFakeTest < ActiveSupport::TestCase
  test 'names' do
    m_result = []
    m_result << RussFake::Name::surname(sex: :m)
    m_result << RussFake::Name::first_name(sex: :m)
    m_result << RussFake::Name::patronymic(sex: :m)

    f_result = []
    f_result << RussFake::Name::surname(sex: :f)
    f_result << RussFake::Name::first_name(sex: :f)
    f_result << RussFake::Name::patronymic(sex: :f)
    puts "------------"
    puts "Она #{ f_result.join(' ') } и он #{ m_result.join(' ') }"
    puts "------------"
  end

  test 'text' do
    puts RussFake::Word.phrase(paragraph: 1, density: 10)
  end
end
