Sha256: f449de0a50f585d24534b8cdd318bc38208a4058fdc838c07461a844e4768488
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require 'spec_helper' describe Libvirt::Ruby::Network do let(:network) { Libvirt::Ruby::Network } context "when calling method #dispatcher" do before :each do network.stub(:attach_function).with("virNetworkRef", "virNetworkRef", [], :int).and_return(true) network.stub(:send).with("virNetworkRef", []) end after :each do network.dispatcher('Ref', [:int]) end it "should attach it as a binding for C's function" do network.should_receive(:attach_function).with("virNetworkRef", "virNetworkRef", [], :int).and_return(true) end it "should call the new attached method" do network.should_receive(:send).with("virNetworkRef", []) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libvirt-ruby-0.0.1 | spec/libvirt-ruby/network_spec.rb |