Sha256: a471260ba29cc0f8d5476d0e50d0d7ce3e0a1c634185599c1f85c6c4daf4f04c

Contents?: true

Size: 343 Bytes

Versions: 4

Compression:

Stored size: 343 Bytes

Contents

require "helper/all"

describe EM::Synchrony do
  describe "Multi" do
    it "should require unique keys for each deferrable" do
      lambda do
        m = EM::Synchrony::Multi.new
        m.add :df1, EM::DefaultDeferrable.new
        m.add :df1, EM::DefaultDeferrable.new
      end.should raise_error("Duplicate Multi key")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
em-synchrony-1.0.4 spec/multi_spec.rb
em-synchrony-1.0.3 spec/multi_spec.rb
em-synchrony-1.0.2 spec/multi_spec.rb
em-synchrony-1.0.1 spec/multi_spec.rb