Sha256: f74dee163a8a75a4b5a606adbd4a7ec1691793bc845209bc9e7176f223b05870

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

require 'test_helper'

class CassandraObject::BatchesTest < CassandraObject::TestCase
  test 'find_each' do
    Issue.create 
    Issue.create 

    issues = []
    Issue.find_each do |issue|
      issues << issue
    end

    assert_equal Issue.all.to_set, issues.to_set
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.1.1 test/batches_test.rb
gotime-cassandra_object-2.1.0 test/batches_test.rb
gotime-cassandra_object-2.0.0 test/batches_test.rb