<commit_before>require 'spec_helper'

describe Vcloud::Core::Fog::Login do

  # FIXME: #clone is a shallow copy, so line 16 clears the actual ENV.
  # This needs to be handled a different way. Once it is, this test 
  # should be moved into the `spec/integration/core` folder.
  # See https://www.pivotaltracker.com/story/show/76118720
  let!(:mock_env) { ENV.clone }

  before(:each) do
    stub_const('ENV', mock_env)
  end

  describe "#token" do
    context "unable to load credentials" do<commit_msg>Revert "Add FIXME to test that clears ENV"<commit_after>require 'spec_helper'

describe Vcloud::Core::Fog::Login do
  let!(:mock_env) { ENV.clone }

  before(:each) do
    stub_const('ENV', mock_env)
  end

  describe "#token" do
    context "unable to load credentials" do
{'fraction_non_alphanumeric': 0.11182519280205655, 'fraction_numerical': 0.012853470437017995, 'mean_word_length': 4.091503267973856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '4872788', 'n_tokens_mistral': 274, 'n_tokens_neox': 262, 'n_words': 83}