Sha256: 1e43cf4abc84c2f2d0ca89d3c9983fe6cf89c2779b35e6e0cdc838762f265a11
Contents?: true
Size: 429 Bytes
Versions: 2
Compression:
Stored size: 429 Bytes
Contents
require File.expand_path('../fixtures/classes', __FILE__) describe "Observer#delete_observer" do before(:each) do @observable = ObservableSpecs.new @observer = ObserverCallbackSpecs.new end it "deletes the observer" do @observable.add_observer(@observer) @observable.delete_observer(@observer) @observable.changed @observable.notify_observers("test") @observer.value.should == nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysl-observer-1.0.0 | spec/delete_observer_spec.rb |
rubysl-observer-2.0.0 | spec/delete_observer_spec.rb |