<commit_before><commit_msg>Added a test that excersises the disconnection<commit_after>require 'gooddata'
require 'pry'

describe GoodData::Connection, :constraint => 'slow' do

  it "should log in and disconnect" do

    GoodData.connect("<EMAIL>", "jindrisska")
    GoodData.get("/gdc/md")

    conn = GoodData.connection
    GoodData.disconnect
    expect{GoodData.connection}.to raise_error
    conn.connected?.should == false
  end

end
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.0, 'mean_word_length': 4.525, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '6420718', 'n_tokens_mistral': 140, 'n_tokens_neox': 133, 'n_words': 34}