<commit_before>require 'helper'
include Esendex

class TestAccount < Test::Unit::TestCase
  should "validate account when a new one is created" do
    code_challenge_account = Account.new("EX0068832", "<EMAIL>", "<PASSWORD>")
    
    assert code_challenge_account.messages_remaining > 0
  end
  
  should "fail authorisation" do
    code_challenge_account = Account.new("EX0068832", "bilge", "bilge")
    
  end
  
  should "send a message" do
    code_challenge_account = Account.new("EX0068832", "<EMAIL>", "<PASSWORD>")
    
    batch_id = code_challenge_account.send_message(Message.new("447815777555", "Hello from the Esendex Ruby Gem"))
    
    assert batch_id
  end
end<commit_msg>updated integration tests to a) work and b) use dummy mobile number<commit_after>require 'helper'
include Esendex

class TestAccount < Test::Unit::TestCase
  should "validate account when a new one is created" do
    code_challenge_account = Account.new("EX0068832", "<EMAIL>", "<PASSWORD>cha<PASSWORD>")
    
    assert code_challenge_account.messages_remaining > 0
  end
  
  should "fail authorisation" do
    begin
      code_challenge_account = Account.new("EX0068832", "bilge", "bilge")
    rescue Esendex::ForbiddenError
    end
    
  end
  
  should "send a message" do
    code_challenge_account = Account.new("EX0068832", "<EMAIL>", "c0d3cha1<PASSWORD>3")
    
    batch_id = code_challenge_account.send_message(Message.new("447700900000", "Hello from the Esendex Ruby Gem"))
    
    assert batch_id
  end
end
{'fraction_non_alphanumeric': 0.10191925876902713, 'fraction_numerical': 0.04765056254136334, 'mean_word_length': 4.25, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '1763526', 'n_tokens_mistral': 534, 'n_tokens_neox': 478, 'n_words': 124}