spec/riak/object_spec.rb in riak-client-0.7.0 vs spec/riak/object_spec.rb in riak-client-0.7.1
- old
+ new
@@ -512,12 +512,12 @@
@http.should_receive(:delete).with([204,404], "/riak/", "bucket%20spaces", "deep%2Fpath",{},{}).and_return({:code => 204, :headers => {}})
@object.delete
end
end
- it "should convert to a link having the same url and an empty tag" do
+ it "should not convert to link without a tag" do
@object = Riak::RObject.new(@bucket, "bar")
- @object.to_link.should == Riak::Link.new("/riak/foo/bar", nil)
+ lambda { @object.to_link }.should raise_error
end
it "should convert to a link having the same url and a supplied tag" do
@object = Riak::RObject.new(@bucket, "bar")
@object.to_link("next").should == Riak::Link.new("/riak/foo/bar", "next")