Sha256: 03a5f4de339ce074c42796115d6a26f04b7686cee78d2db21ae04d90de00a672

Contents?: true

Size: 406 Bytes

Versions: 13

Compression:

Stored size: 406 Bytes

Contents

describe Sufia::Pageview, type: :model do
  it 'has a pageviews metric' do
    expect(described_class.metrics).to be == Legato::ListParameter.new(:metrics, [:pageviews])
  end

  it 'has a date dimension' do
    expect(described_class.dimensions).to be == Legato::ListParameter.new(:dimensions, [:date])
  end

  it 'responds to :for_path' do
    expect(described_class).to respond_to(:for_path)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sufia-7.4.1 spec/models/sufia/pageview_spec.rb
sufia-7.4.0 spec/models/sufia/pageview_spec.rb
sufia-7.3.1 spec/models/sufia/pageview_spec.rb
sufia-7.3.0 spec/models/sufia/pageview_spec.rb
sufia-7.3.0.rc3 spec/models/sufia/pageview_spec.rb
sufia-7.3.0.rc2 spec/models/sufia/pageview_spec.rb
sufia-7.3.0.rc1 spec/models/sufia/pageview_spec.rb
sufia-7.2.0 spec/models/sufia/pageview_spec.rb
sufia-7.1.0 spec/models/sufia/pageview_spec.rb
sufia-7.0.0 spec/models/sufia/pageview_spec.rb
sufia-7.0.0.rc2 spec/models/sufia/pageview_spec.rb
sufia-7.0.0.rc1 spec/models/sufia/pageview_spec.rb
sufia-7.0.0.beta4 spec/models/sufia/pageview_spec.rb