diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-05-08 09:29:13 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-05-08 09:29:13 +0200 |
commit | 110b470a69f785f195cce21df7c07efa5c9ce61b (patch) | |
tree | 618d51dc0cee62f6dbb3d607005dfbabea32989e /test | |
parent | 48234554ea99b972a01718ac36c4e8332dd9159b (diff) |
gridfs test added
Diffstat (limited to 'test')
-rw-r--r-- | test/gridfs.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/gridfs.rb b/test/gridfs.rb new file mode 100644 index 0000000..5bd5b8e --- /dev/null +++ b/test/gridfs.rb @@ -0,0 +1,10 @@ +require_relative "setup.rb" + +class GridFSTest < MiniTest::Test + + def test_gridfs + file = Mongo::Grid::File.new("TEST", :filename => "test.txt",:content_type => "text/plain") + id = $gridfs.insert_one file + refute_nil id + end +end |