spec/libvirt-ruby_spec.rb in libvirt-ruby-1.0.1 vs spec/libvirt-ruby_spec.rb in libvirt-ruby-1.0.2
- old
+ new
@@ -26,13 +26,9 @@
end
it "should attach it as a binding for C's function" do
libvirt.should_receive(:attach_function).with("virConnectClose", "virConnectClose", [], :int).and_return(true)
end
-
- it "should call the new attached method" do
- libvirt.should_receive(:send).with("virConnectClose", [])
- end
end
context "and the function is not a valid one" do
before :each do
libvirt.stub(:attach_function).with("virConnectAbc", "virConnectAbc", [], :int).and_raise(FFI::NotFoundError.new('Abc', 'libvirt'))
\ No newline at end of file