spec/unit/client/entity_spec.rb in amq-client-0.7.0.alpha23 vs spec/unit/client/entity_spec.rb in amq-client-0.7.0.alpha24
- old
+ new
@@ -2,11 +2,18 @@
require "spec_helper"
require "amq/client/entity"
describe AMQ::Client::Entity do
+ let(:klazz) do
+ Class.new do
+ include AMQ::Client::Entity
+ end
+ end
+
+
subject do
- AMQ::Client::Entity.new(Object.new)
+ klazz.new(Object.new)
end
it "should maintain an associative array of callbacks" do
subject.callbacks.should be_kind_of(Hash)
end