Sha256: 405c2b657f7714bbc3ee6f69c041bcd386449e71c755d6f6be4a7ace87a581b1
Contents?: true
Size: 545 Bytes
Versions: 10
Compression:
Stored size: 545 Bytes
Contents
shared_context "search corpus setup" do before do @bucket = @client.bucket('search_test') orig_proto, @client.protocol = @client.protocol, :http @bucket.enable_index! @client.protocol = orig_proto idx = 0 IO.foreach("spec/fixtures/munchausen.txt") do |para| next if para =~ /^\s*$|introduction|chapter/i idx += 1 Riak::RObject.new(@bucket, "munchausen-#{idx}") do |obj| obj.content_type = 'text/plain' obj.raw_data = para @backend.store_object(obj) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems