18d7d1c699
- changed the BSON constant to BSON_CODER and scoped it inside of a module - changed the directory layout for all of the BSON related files - updated the C extension to find the BSON files at their new directory locations - updated the C extension to use better/safer macros for accessing the C API; extension now compiles cleanly under rubinius/rbx - changed directory layout for BSON related tests - modified the Rakefile to understand the new layout
16 lines
356 B
Ruby
16 lines
356 B
Ruby
# encoding:utf-8
|
|
require 'test/test_helper'
|
|
|
|
class BinaryTest < Test::Unit::TestCase
|
|
context "Inspecting" do
|
|
setup do
|
|
@data = ("THIS IS BINARY " * 50).unpack("c*")
|
|
end
|
|
|
|
should "not display actual data" do
|
|
binary = Mongo::Binary.new(@data)
|
|
assert_equal "<Mongo::Binary:#{binary.object_id}>", binary.inspect
|
|
end
|
|
end
|
|
end
|