Sha256: fe496739bb51ad2288f40550187fbaa23146133871a2b7a2128a7fa24f214f75

Contents?: true

Size: 948 Bytes

Versions: 8

Compression:

Stored size: 948 Bytes

Contents

# Author:: Couchbase <info@couchbase.com>
# Copyright:: 2011, 2012 Couchbase, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require File.join(File.dirname(__FILE__), 'setup')

class TestUtils < MiniTest::Unit::TestCase

  def test_complex_startkey
    assert_equal "all_docs?startkey=%5B%22Deadmau5%22%2C%22%22%5D", Couchbase::Utils.build_query("all_docs", :startkey =>  ["Deadmau5", ""])
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
couchbase-1.2.0.z.beta3-x86-mingw32 test/test_utils.rb
couchbase-1.2.0.z.beta3 test/test_utils.rb
couchbase-1.2.0.z.beta2-x86-mingw32 test/test_utils.rb
couchbase-1.2.0.z.beta2 test/test_utils.rb
couchbase-1.2.0.z.beta-x86-mingw32 test/test_utils.rb
couchbase-1.2.0.z.beta test/test_utils.rb
couchbase-1.2.0.beta test/test_utils.rb
couchbase-1.2.0.beta-x86-mingw32 test/test_utils.rb