<commit_before>require 'spec_helper'

describe QboApi::Util do

  it 'allow string to pass thru cdc_time' do
    api = QboApi.new(creds.to_h)
    expect(api.cdc_time("str")).to eq "str"
  end

  it 'convert Time objects to proper CDC "changed since" time stamp' do
    api = QboApi.new(creds.to_h)
    expect(api.cdc_time(Time.now)).to match /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}-\d{2}:\d{2}$/
  end<commit_msg>Fixed test for time zones with positive offset<commit_after>require 'spec_helper'

describe QboApi::Util do

  it 'allow string to pass thru cdc_time' do
    api = QboApi.new(creds.to_h)
    expect(api.cdc_time("str")).to eq "str"
  end

  it 'convert Time objects to proper CDC "changed since" time stamp' do
    api = QboApi.new(creds.to_h)
    expect(api.cdc_time(Time.now)).to match /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2}$/
  end
{'fraction_non_alphanumeric': 0.175990675990676, 'fraction_numerical': 0.018648018648018648, 'mean_word_length': 3.71978021978022, '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': '6841355', 'n_tokens_mistral': 364, 'n_tokens_neox': 353, 'n_words': 80}