<commit_before>require 'spec_helper'

describe PontDelPetroli::PDPParser do

  let(:subject) { PontDelPetroli::PDPParser.new }

  describe '#run' do

    let(:data) { subject.run }

    it 'parses the site' do
      expect(data).to be_an Array
    end

    it 'returns only meaningfull data' do
      expect(data.all?).to be true
    end
  end

end

describe PontDelPetroli do
  let(:subject) { PontDelPetroli }

  describe '.now' do
    it 'returns the latest buoy data' do
      expect(subject.now).to be_a PontDelPetroli::SwellData
    end
  end

  describe '.history' do
    it 'returns all data available' do
      expect(subject.history).to be_a Array
    end
  end
end<commit_msg>fixes broken test<commit_after>require 'spec_helper'

describe PontDelPetroli::PDPParser do

  let(:subject) { PontDelPetroli::PDPParser.new }

  describe '#run' do

    let(:data) { subject.run }

    it 'parses the site' do
      expect(data).to be_an Array
    end

    it 'returns only meaningfull data' do
      expect(data.all?).to be true
    end
  end

end

describe PontDelPetroli do
  let(:subject) { PontDelPetroli }

  describe '.now' do
    it 'returns the latest buoy data' do
      expect(subject.now).to be_a PontDelPetroli::SwellData
    end
  end

  describe '.all' do
    it 'returns all data available' do
      expect(subject.all).to be_a Array
    end
  end
end
{'fraction_non_alphanumeric': 0.08905109489051095, 'fraction_numerical': 0.0, 'mean_word_length': 2.997084548104956, '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': '4985617', 'n_tokens_mistral': 474, 'n_tokens_neox': 451, 'n_words': 137}