Sha256: 534a488c4f0b7b19158a72878e71504aaca240516783f657eceafc9b4db746b6

Contents?: true

Size: 368 Bytes

Versions: 10

Compression:

Stored size: 368 Bytes

Contents

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

  describe "#points" do
    before do
      create(:generic_work)
    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/works/over_time_spec.rb
hyrax-1.1.0 spec/services/hyrax/statistics/works/over_time_spec.rb
hyrax-1.0.5 spec/services/hyrax/statistics/works/over_time_spec.rb
hyrax-1.0.4 spec/services/hyrax/statistics/works/over_time_spec.rb
hyrax-1.0.3 spec/services/hyrax/statistics/works/over_time_spec.rb
hyrax-1.0.2 spec/services/hyrax/statistics/works/over_time_spec.rb
hyrax-1.0.1 spec/services/hyrax/statistics/works/over_time_spec.rb
hyrax-1.0.0.rc2 spec/services/hyrax/statistics/works/over_time_spec.rb
hyrax-1.0.0.rc1 spec/services/hyrax/statistics/works/over_time_spec.rb
test_hyrax-0.0.1.alpha spec/services/hyrax/statistics/works/over_time_spec.rb