spec/object/pack_spec.rb in baccigalupi-aqua-0.1.4 vs spec/object/pack_spec.rb in baccigalupi-aqua-0.1.5

- old
+ new

@@ -53,9 +53,15 @@ other_user_pack = @pack[:stubs].first other_user_pack[:methods].size.should == 1 other_user_pack[:methods][:username].should == 'graeme' end + it "should pack a stub of an object with embed=>false" do + sugar = Sugar.new + sugar.sweetness = Sugar.new + lambda {sugar._pack}.should_not raise_error + end + it 'should pack an array of stubbed methods' do User.configure_aqua( :embed => {:stub => [:username, :name] } ) @user = User.new( :username => 'kane', :name => ['Kane', 'Baccigalupi'],