Sha256: 22d6fcbc56a769e27694ecf4212c52d90b60e8f4701899607178105935ebcd38

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

require File.expand_path('../fixtures/classes', __FILE__)

describe "Observer#delete_observers" do
  before(:each) do
    @observable = ObservableSpecs.new
    @observer = ObserverCallbackSpecs.new
  end

  it "deletes the observers" do
    @observable.add_observer(@observer)
    @observable.delete_observers

    @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_observers_spec.rb
rubysl-observer-2.0.0 spec/delete_observers_spec.rb