spec/riak/map_reduce_spec.rb in riak-client-0.7.0 vs spec/riak/map_reduce_spec.rb in riak-client-0.7.1

- old
+ new

@@ -176,9 +176,13 @@ it "should add the timeout value when set" do @mr.timeout(50000) @mr.to_json.should include('"timeout":50000') end + + it "should return self from setting the timeout" do + @mr.timeout(5000).should == @mr + end end describe "executing the map reduce job" do it "should issue POST request to the mapred endpoint" do @http.should_receive(:post).with(200, "/mapred", @mr.to_json, hash_including("Content-Type" => "application/json")).and_return({:headers => {'content-type' => ["application/json"]}, :body => "{}"})