Sha256: 4cb4be6afc52351c02e248a7ba76a8a161eb1aa37ee229159ec904e95150934e
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
require 'helper' class TestDesignDoc < Minitest::Test def test_create_design_doc dd = { by_foo: { map: <<-JS function(doc, meta) { emit(doc.id, null) } JS } } design_doc = Couchbase::DesignDoc.new('bar', dd) assert_instance_of com.couchbase.client.java.view.DesignDocument, design_doc.create end def test_incorrect_doc_format dd = { by_fu: '' } assert_raises Couchbase::DesignDocFormatError do Couchbase::DesignDoc.new('bar', dd) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchbase-jruby-client-1.0.4-java | test/test_design_doc.rb |