Sha256: b2166b359ca034076523f9312b8526139602f245f4c1da11c045baaf9dec0b95
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
require 'spec_helper' describe ActivityEngine::ActivitySweeper do class TestSweeper < ActivityEngine::ActivitySweeper end class Book end class Animal end describe '#observe' do it 'should allow multiple registrations' do expect { TestSweeper.observe(:book) }.to change{TestSweeper.observed_classes}.from([]).to([Book]) expect { TestSweeper.observe(:animal) }.to change{TestSweeper.observed_classes}.from([Book]).to([Book, Animal]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activity_engine-0.0.7 | spec/lib/activity_engine/activity_sweeper_spec.rb |
activity_engine-0.0.6 | spec/lib/activity_engine/activity_sweeper_spec.rb |