Sha256: cf469a0f9cc054dc0e8a717572b949626819f11fa5a72cce8a50a746732a03c6
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 Bytes
Contents
require 'spec_helper' module Telephony describe EventObserver do before do ActiveRecord::Base.observers.enable 'Telephony::EventObserver' EventObserver.instance end describe "#after_create" do let(:event) { build(:event) } it "asks its event to publish itself" do event.should_receive(:publish) event.save! end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
telephony-1.0.4 | spec/observers/telephony/event_observer_spec.rb |
telephony-1.0.3 | spec/observers/telephony/event_observer_spec.rb |