Sha256: 68f14b972a8f3757d035d9990b30db25c916cebff8a3acb675964178280c5211
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe "Event handling" do describe "for precompiled CLR classes" do before do @warrior = ClrModels::ExposingWarrior.new end it "should subscribe to an event" do ClrModels::ExposedChangedSubscriber.new(@warrior) @warrior.has_event_subscriptions.should.be.true? end it "should not raise an error when subcribing to an event" do lambda { ClrModels::ExposedChangedSubscriber.new(@warrior) }.should.not.raise end it "should handle an event when raised" do subscriber = ClrModels::ExposedChangedSubscriber.new(@warrior) @warrior.change_is_exposed subscriber.counter.should.equal 1 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caricature-0.7.7 | spec/bacon/unit/interop_spec.rb |