spec/riak/client_spec.rb in ripple-0.5.1 vs spec/riak/client_spec.rb in ripple-0.6.0

- old
+ new

@@ -48,12 +48,12 @@ it "should accept a path prefix" do client = Riak::Client.new(:prefix => "/jiak/") client.prefix.should == "/jiak/" end - it "should default the prefix to /raw/ if not specified" do - Riak::Client.new.prefix.should == "/raw/" + it "should default the prefix to /riak/ if not specified" do + Riak::Client.new.prefix.should == "/riak/" end it "should accept a mapreduce path" do client = Riak::Client.new(:mapred => "/mr") client.mapred.should == "/mr" @@ -155,15 +155,15 @@ @payload = {:headers => {"content-type" => ["application/json"]}, :body => "{}"} @http.stub!(:get).and_return(@payload) end it "should send a GET request to the bucket name and return a Riak::Bucket" do - @http.should_receive(:get).with(200, "/raw/", "foo", {}, {}).and_return(@payload) + @http.should_receive(:get).with(200, "/riak/", "foo", {}, {}).and_return(@payload) @client.bucket("foo").should be_kind_of(Riak::Bucket) end it "should allow requesting bucket properties without the keys" do - @http.should_receive(:get).with(200, "/raw/", "foo", {:keys => false}, {}).and_return(@payload) + @http.should_receive(:get).with(200, "/riak/", "foo", {:keys => false}, {}).and_return(@payload) @client.bucket("foo", :keys => false) end end end