Sha256: 22cdfd748b048538b2d2112e156e791f2827da10633e27d88c502ac71e11b44b

Contents?: true

Size: 449 Bytes

Versions: 8

Compression:

Stored size: 449 Bytes

Contents

require 'spec_helper'

describe Sufia::Pageview 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

8 entries across 8 versions & 1 rubygems

Version Path
sufia-4.0.1 spec/models/pageview_spec.rb
sufia-4.0.0 spec/models/pageview_spec.rb
sufia-4.0.0.rc2 spec/models/pageview_spec.rb
sufia-4.0.0.rc1 spec/models/pageview_spec.rb
sufia-4.0.0.beta4 spec/models/pageview_spec.rb
sufia-4.0.0.beta3 spec/models/pageview_spec.rb
sufia-4.0.0.beta2 spec/models/pageview.rb
sufia-4.0.0.beta1 spec/models/pageview.rb