Sha256: 413b244463a7d5072c63d7aae940fef0495b49fdec7a658c052bb3db6d8497ba

Contents?: true

Size: 372 Bytes

Versions: 10

Compression:

Stored size: 372 Bytes

Contents

RSpec.describe Hyrax::Statistics::Collections::OverTime do
  let(:service) { described_class.new }

  describe "#points" do
    before do
      create(:collection)
    end

    subject { service.points }

    it "is a list of points" do
      expect(subject.size).to eq 5
      expect(subject.first[1]).to eq 0
      expect(subject.to_a.last[1]).to eq 1
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/services/hyrax/statistics/collections/over_time_spec.rb
hyrax-1.1.0 spec/services/hyrax/statistics/collections/over_time_spec.rb
hyrax-1.0.5 spec/services/hyrax/statistics/collections/over_time_spec.rb
hyrax-1.0.4 spec/services/hyrax/statistics/collections/over_time_spec.rb
hyrax-1.0.3 spec/services/hyrax/statistics/collections/over_time_spec.rb
hyrax-1.0.2 spec/services/hyrax/statistics/collections/over_time_spec.rb
hyrax-1.0.1 spec/services/hyrax/statistics/collections/over_time_spec.rb
hyrax-1.0.0.rc2 spec/services/hyrax/statistics/collections/over_time_spec.rb
hyrax-1.0.0.rc1 spec/services/hyrax/statistics/collections/over_time_spec.rb
test_hyrax-0.0.1.alpha spec/services/hyrax/statistics/collections/over_time_spec.rb