<commit_before>require 'spec_helper'

describe ManageEngine::AppManager::Api do
  subject { ManageEngine::AppManager::Api }

  it "can create a new instance" do
    subject.should respond_to(:new)
  end

  describe "new" do
    it "should return a new Api instance" do
      ManageEngine::AppManager::Api.new("11").should be_instance_of(ManageEngine::AppManager::Api::Version11)
    end
  end
end<commit_msg>Add Spec for Unknown API Version<commit_after>require 'spec_helper'

describe ManageEngine::AppManager::Api do
  subject { ManageEngine::AppManager::Api }

  it "can create a new instance" do
    subject.should respond_to(:new)
  end

  describe "new" do
    it "returns a new Api instance" do
      ManageEngine::AppManager::Api.new("11").should be_instance_of(ManageEngine::AppManager::Api::Version11)
    end

    it "raises an error for an unknown version" do
      expect{ ManageEngine::AppManager::Api.new("X") }.to raise_error
    end
  end
end
{'fraction_non_alphanumeric': 0.10427528675703858, 'fraction_numerical': 0.008342022940563087, 'mean_word_length': 4.5813953488372094, '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': '4012298', 'n_tokens_mistral': 307, 'n_tokens_neox': 296, 'n_words': 83}