spec/support/mock_fedora.rb in active-fedora-3.2.0.pre2 vs spec/support/mock_fedora.rb in active-fedora-3.2.0.pre3
- old
+ new
@@ -1,9 +1,10 @@
def mock_client
return @mock_client if @mock_client
@mock_client = mock("client")
@getter = mock("getter")
@getter.stubs(:get).returns('')
+ @mock_client.stubs(:[]).with("describe?xml=true").returns('')
@mock_client
end
def stub_get(pid, datastreams=nil, record_exists=false)
pid.gsub!(/:/, '%3A')