Sha256: 3ddc285a1940d3b6107a71b1499aa805f02eeb4e10cf3b5522500fb870a5723d

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'
describe ActivityEngine::Statistic do
  subject{
    ActivityEngine::Statistic.new(object, opts)
  }
  let(:opts) { {activity_type: activity_type} }
  let(:object){ Object.new }

  let(:activity_type){ 'activity_type' }
  it 'should have activity_type and subject when created' do
    expect( subject.subject ).to eq object
  end

  it 'should assign activity type' do
    expect( subject.activity_type ).to eq activity_type
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activity_engine-0.0.9 spec/app/models/activity_engine/statistic_spec.rb
activity_engine-0.0.8 spec/app/models/activity_engine/statistic_spec.rb
activity_engine-0.0.7 spec/models/activity_engine/statistic_spec.rb
activity_engine-0.0.6 spec/models/activity_engine/statistic_spec.rb