spec/integration/dm-observer_spec.rb in dm-observer-1.0.2 vs spec/integration/dm-observer_spec.rb in dm-observer-1.1.0.rc1
- old
+ new
@@ -100,15 +100,15 @@
@adam.dig_a_hole_to_china
@adam.done.should be_nil
end
it "observe should add a class to the neighborhood watch" do
- AdamObserver.should have(1).observing
+ AdamObserver.observing.size.should == 1
AdamObserver.observing.first.should == Adam
end
it "observe should add more than one class to the neighborhood watch" do
- DrinkingObserver.should have(2).observing
+ DrinkingObserver.observing.size.should == 2
DrinkingObserver.observing.first.should == Adam
DrinkingObserver.observing[1].should == Alcohol::Beer
end
it "should observe multiple classes with the same method name" do