Sha256: 1635f039c897602c42c5f7816e6b784beae67589a9dec7ff7aa29b11d16c2b78

Contents?: true

Size: 505 Bytes

Versions: 13

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

describe Sufia::Download, :type => :model do

  before do
    @download = Sufia::Download
  end

  it 'has an events metric' do
    expect(@download.metrics).to be  == Legato::ListParameter.new(:metrics, [:totalEvents])
  end

  it 'has dimensions' do
    expect(@download.dimensions).to be == Legato::ListParameter.new(:dimensions, [:eventCategory, :eventAction, :eventLabel, :date])
  end

  it 'responds to :for_file' do
    expect(@download).to respond_to(:for_file)
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

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