test/virtualbox/network_adapter_test.rb in virtualbox-0.7.1 vs test/virtualbox/network_adapter_test.rb in virtualbox-0.7.2
- old
+ new
@@ -134,10 +134,11 @@
end
should "save the attachment type and interface attributes on the open adapter" do
@instance.expects(:save_attachment_type).with(@adapter).once
@instance.expects(:save_changed_interface_attributes).with(@adapter).once
+ @instance.expects(:save_relationships).once
@instance.save
end
end
context "saving attachment type" do
@@ -169,9 +170,10 @@
context "modifying the adapter" do
setup do
@machine = mock("machine")
@session = mock("session")
@session.stubs(:machine).returns(@machine)
+ @instance.expects(:parent_machine).returns(@parent)
@adapter = mock("adapter")
end
should "open a session, yield the proper adapter, then save settings" do