Sha256: b8e6037913cfbb6faffc6b62c89843ba04743805ff2defa7a6a5ea4b7fac9e1e

Contents?: true

Size: 1.05 KB

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
cloudwow-not_relational-0.1.0 test/unit_tests/memcache_repository_test.rb