<commit_before>require "spec_helper"

describe Chromedriver::Helper::GoogleCodeParser do
  before(:each) do
    Chromedriver::Helper::GoogleCodeParser.any_instance.stub(:open).and_return(File.read(File.join(File.dirname(__FILE__), "assets/google-code-bucket.xml")))
  end
  let!(:parser) { Chromedriver::Helper::GoogleCodeParser.new('mac') }

  describe "#downloads" do
    it "returns an array of URLs for the platform" do
      parser.downloads.should == [
        "https://chromedriver.storage.googleapis.com/2.0/chromedriver_mac32.zip",
        "https://chromedriver.storage.googleapis.com/2.1/chromedriver_mac32.zip",
        "https://chromedriver.storage.googleapis.com/2.2/chromedriver_mac32.zip",
        "https://chromedriver.storage.googleapis.com/2.3/chromedriver_mac32.zip",
        "https://chromedriver.storage.googleapis.com/2.4/chromedriver_mac32.zip"]
    end
  end

  describe "#newest_download" do
    it "returns the last URL for the platform" do
      parser.newest_download.should == "https://chromedriver.storage.googleapis.com/2.4/chromedriver_mac32.zip"
    end
  end
end

<commit_msg>Plain HTTP for spec URLs<commit_after>require "spec_helper"

describe Chromedriver::Helper::GoogleCodeParser do
  before(:each) do
    Chromedriver::Helper::GoogleCodeParser.any_instance.stub(:open).and_return(File.read(File.join(File.dirname(__FILE__), "assets/google-code-bucket.xml")))
  end
  let!(:parser) { Chromedriver::Helper::GoogleCodeParser.new('mac') }

  describe "#downloads" do
    it "returns an array of URLs for the platform" do
      parser.downloads.should == [
        "http://chromedriver.storage.googleapis.com/2.0/chromedriver_mac32.zip",
        "http://chromedriver.storage.googleapis.com/2.1/chromedriver_mac32.zip",
        "http://chromedriver.storage.googleapis.com/2.2/chromedriver_mac32.zip",
        "http://chromedriver.storage.googleapis.com/2.3/chromedriver_mac32.zip",
        "http://chromedriver.storage.googleapis.com/2.4/chromedriver_mac32.zip"]
    end
  end

  describe "#newest_download" do
    it "returns the last URL for the platform" do
      parser.newest_download.should == "http://chromedriver.storage.googleapis.com/2.4/chromedriver_mac32.zip"
    end
  end
end


{'fraction_non_alphanumeric': 0.13573033707865167, 'fraction_numerical': 0.021573033707865168, 'mean_word_length': 4.140877598152425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1859470', 'n_tokens_mistral': 787, 'n_tokens_neox': 726, 'n_words': 104}