<commit_before># Get everything loaded up per gemspec
#
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

require 'rspec'
require 'zoho_invoice'
require 'webmock/rspec'
require 'pry'

Coveralls.wear!
WebMock.disable_net_connect!

RSpec.configure do |config|
  config.expect_with(:rspec) do |c|
    c.syntax = :expect
  end
end

def stub_get(path)
  stub_request(:get, ZohoInvoice::Defaults::URL + path)
end

def a_get(path)
  a_request(:get, ZohoInvoice::Defaults::URL + path)
end

def stub_post(path)
  stub_request(:post, ZohoInvoice::Defaults::URL + path)
end

def a_post(path)
  a_request(:post, ZohoInvoice::Defaults::URL + path)
end

def fixture_path
  File.expand_path('../fixtures', __FILE__)<commit_msg>coveralls setup was messing up the coverage checks locally<commit_after># Get everything loaded up per gemspec
#
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

require 'rspec'
require 'zoho_invoice'
require 'webmock/rspec'
require 'pry'

WebMock.disable_net_connect!

RSpec.configure do |config|
  config.expect_with(:rspec) do |c|
    c.syntax = :expect
  end
end

def stub_get(path)
  stub_request(:get, ZohoInvoice::Defaults::URL + path)
end

def a_get(path)
  a_request(:get, ZohoInvoice::Defaults::URL + path)
end

def stub_post(path)
  stub_request(:post, ZohoInvoice::Defaults::URL + path)
end

def a_post(path)
  a_request(:post, ZohoInvoice::Defaults::URL + path)
end

def fixture_path
  File.expand_path('../fixtures', __FILE__)
{'fraction_non_alphanumeric': 0.11960897067280046, 'fraction_numerical': 0.0, 'mean_word_length': 6.404255319148936, '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': '1415057', 'n_tokens_mistral': 634, 'n_tokens_neox': 616, 'n_words': 134}