Sha256: 20bb381ed9a80811856e8a79049e33670070e64fae9174ad9c32c654e89f4b02

Contents?: true

Size: 329 Bytes

Versions: 5

Compression:

Stored size: 329 Bytes

Contents

require "spec_helper"

describe "Observable" do
  after{remove_constants :Tmp}

  it "method without parameters" do
    class Tmp
      include RubyExt::Observable
    end

    mock = mock "Observer"
    obs = Tmp.new
    obs.add_observer mock
    mock.should_receive(:update).with 2
    obs.notify_observers :update, 2
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby_ext-4.0.3 spec/more/observable_spec.rb
ruby_ext-4.0.2 spec/more/observable_spec.rb
ruby_ext-4.0.1 spec/more/observable_spec.rb
ruby_ext-4.0.0 spec/more/observable_spec.rb
ruby_ext-0.5.10 spec/more/observable_spec.rb