Sha256: 19043367e19023c0fc68f18f1dcacb1f080c901a109c6dd184fa20b38d737ce2
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 KB
Contents
# To change this template, choose Tools | Templates # and open the template in the editor. require 'test/unit' $:.push(File.dirname(__FILE__) +'/../../test/models') $:.push(File.dirname(__FILE__) +'/../../lib/not_relational') require File.dirname(__FILE__) +'/../../lib/not_relational/memcache_repository.rb' require File.dirname(__FILE__) +'/../../test/models/node.rb' class MemcacheRepositoryTest < Test::Unit::TestCase def test_foo # NotRelational::RepositoryFactory.clear # ENV['NOT_RELATIONAL_ENV']='memcache_s3_testing' # begin # nodes=[] # #500 nodes: with s3 =138 secs without s3 99 secs # (0..50).each do |i| # node= Node.fill_new_node('david', "test node #{i}", 'hello world {i}') # node.publicRead= ((i%30)==0) # node.isChannel=((i%20)==0) # # node.save # nodes<<node # end # nodes.each do |n| # found= Node.find(n.id) # assert_not_nil(found) # assert_equal(n.id,found.id) # end # ensure #NotRelational::RepositoryFactory.clear # ENV['NOT_RELATIONAL_ENV']='testing' # end end end
Version data entries
8 entries across 8 versions & 1 rubygems