<commit_before>require 'spec_helper'

RSpec.describe 'Bitconnect integration specs' do
  client = Cryptoexchange::Client.new

  it 'fetch pairs' do
    pairs = client.pairs('bitconnect')
    expect(pairs).not_to be_empty

    pair = pairs.first
    expect(pair.base).to_not be nil
    expect(pair.target).to_not be nil
    expect(pair.market).to eq 'bitconnect'
  end

  it 'fetch ticker' do
    btc_bcc_pair = Cryptoexchange::Models::MarketPair.new(base: 'BTC', target: 'BCC', market: 'bitconnect')
    ticker = client.ticker(btc_bcc_pair)

    expect(ticker.base).to eq 'BTC'
    expect(ticker.target).to eq 'BCC'
    expect(ticker.market).to eq 'bitconnect'<commit_msg>Refactor longer varname to pair<commit_after>require 'spec_helper'

RSpec.describe 'Bitconnect integration specs' do
  client = Cryptoexchange::Client.new

  it 'fetch pairs' do
    pairs = client.pairs('bitconnect')
    expect(pairs).not_to be_empty

    pair = pairs.first
    expect(pair.base).to_not be nil
    expect(pair.target).to_not be nil
    expect(pair.market).to eq 'bitconnect'
  end

  it 'fetch ticker' do
    pair = Cryptoexchange::Models::MarketPair.new(base: 'BTC', target: 'BCC', market: 'bitconnect')
    ticker = client.ticker(pair)

    expect(ticker.base).to eq 'BTC'
    expect(ticker.target).to eq 'BCC'
    expect(ticker.market).to eq 'bitconnect'
{'fraction_non_alphanumeric': 0.12184249628528974, 'fraction_numerical': 0.0, 'mean_word_length': 4.044943820224719, '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': '4259173', 'n_tokens_mistral': 477, 'n_tokens_neox': 460, 'n_words': 105}