spec/riak/map_reduce_spec.rb in riak-client-2.2.0 vs spec/riak/map_reduce_spec.rb in riak-client-2.2.1

- old
+ new

@@ -127,9 +127,16 @@ [:string_to_int], [:between, 2009, 2010]]) end context "using secondary indexes as inputs" do + it "set the inputs for a bucket-typed bucket" do + expect(mr.index(typed_bucket, "email_bin", "sean@basho.com")).to eq(mr) + expect(mr.inputs).to eq(bucket: [typed_bucket.type.name, typed_bucket.name], + index: "email_bin", + key: "sean@basho.com") + end + it "sets the inputs for equality" do expect(mr.index("foo", "email_bin", "sean@basho.com")).to eq(mr) expect(mr.inputs).to eq(bucket: "foo", index: "email_bin", key: "sean@basho.com")