<commit_before>require_relative './test'

require 'coveralls'
Coveralls.wear!

class NexmoClientTest < Nexmo::Test
  def test_api_key_method
    assert_equal client.api_key, api_key
  end

  def test_api_key_method_raises_authentication_error
    client = Nexmo::Client.new

    exception = assert_raises(Nexmo::AuthenticationError) { client.api_key }

    assert_includes exception.message, 'No API key provided.'<commit_msg>removed individual reference to coveralls<commit_after>require_relative './test'

class NexmoClientTest < Nexmo::Test
  def test_api_key_method
    assert_equal client.api_key, api_key
  end

  def test_api_key_method_raises_authentication_error
    client = Nexmo::Client.new

    exception = assert_raises(Nexmo::AuthenticationError) { client.api_key }

    assert_includes exception.message, 'No API key provided.'
{'fraction_non_alphanumeric': 0.07354685646500593, 'fraction_numerical': 0.0, 'mean_word_length': 5.393939393939394, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7217045', 'n_tokens_mistral': 270, 'n_tokens_neox': 257, 'n_words': 54}