Sha256: c09ebf0479f213c50a3390dfd9cb6607c16e2b41ffd8faead80ae43ec82b0271
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
# # testing rufus-jig # # Tue Dec 29 14:45:22 JST 2009 # require File.join(File.dirname(__FILE__), 'couch_base') class CtCouchDbOptionsTest < Test::Unit::TestCase def setup h = Rufus::Jig::Http.new(couch_url) begin h.delete('/rufus_jig_test') rescue Exception => e #p e end h.put('/rufus_jig_test', '') h.put('/rufus_jig_test/coffee2_0', '{"_id":"coffee2_0","type":"ristretto"}') h.close @c = Rufus::Jig::Couch.new(couch_url, 'rufus_jig_test') end def teardown @c.close end def test_put_gone doc = @c.get('coffee2_0') @c.delete(doc) assert_nil @c.get('coffee2_0') doc['whatever'] = 'else' r = @c.put(doc) assert_equal true, r end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rufus-jig-0.1.23 | test/ct_2_couchdb_options.rb |
rufus-jig-0.1.22 | test/ct_2_couchdb_options.rb |