Sha256: 259162301e95c80bbe7991c9bffab0c5480849f441aaa10db7f324e2cea6a44f

Contents?: true

Size: 466 Bytes

Versions: 13

Compression:

Stored size: 466 Bytes

Contents

require 'spec_helper'

describe Sufia::Pageview, :type => :model do
  before do
    @pageview = Sufia::Pageview
  end

  it 'has a pageviews metric' do
    expect(@pageview.metrics).to be  == Legato::ListParameter.new(:metrics, [:pageviews])
  end

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sufia-6.2.0 spec/models/pageview_spec.rb
sufia-6.1.0 spec/models/pageview_spec.rb
sufia-5.0.0 spec/models/pageview_spec.rb
sufia-6.0.0 spec/models/pageview_spec.rb
sufia-6.0.0.rc4 spec/models/pageview_spec.rb
sufia-6.0.0.rc3 spec/models/pageview_spec.rb
sufia-5.0.0.rc1 spec/models/pageview_spec.rb
sufia-6.0.0.rc2 spec/models/pageview_spec.rb
sufia-6.0.0.rc1 spec/models/pageview_spec.rb
sufia-4.3.1 spec/models/pageview_spec.rb
sufia-6.0.0.beta1 spec/models/pageview_spec.rb
sufia-4.2.0 spec/models/pageview_spec.rb
sufia-4.1.0 spec/models/pageview_spec.rb