test/allocation_strategies_test.rb in rbplusplus-1.3.0 vs test/allocation_strategies_test.rb in rbplusplus-1.4.0

- old
+ new

@@ -13,22 +13,16 @@ # strategies aren't properly defined, the extension # won't even compile. GCC will complain about trying to # instantiate an object with a non-public constructor # and it all dies. specify "properly figures out what allocation to do" do - lambda do - require 'alloc_strats' - end.should_not raise_error(LoadError) + require 'alloc_strats' # Private constructor, public destructor - lambda do - NoConstructor - end.should_not raise_error(NameError) + NoConstructor # Private constructor and destructor - lambda do - Neither - end.should_not raise_error(NameError) + Neither end specify "can get access to Neither object" do n = Neither.get_instance n.should_not be_nil