Sha256: a314b95ba94245771292e7a9348c67c03267ebe54d233193d6a9c8bd607eba60

Contents?: true

Size: 624 Bytes

Versions: 26

Compression:

Stored size: 624 Bytes

Contents

require 'test_helper'

class CassandraObject::Schema::TasksTest < CassandraObject::TestCase
  test "column_families" do
    assert_equal ['Issues'], CassandraObject::Schema.column_families
  end

  test "dump" do
    io = StringIO.new

    CassandraObject::Schema.dump(io)
    io.rewind

    assert_match /Issues/, io.read
  end

  test "load" do
    CassandraObject::Base.expects(:execute_cql).with("DO STUFF;")
    CassandraObject::Base.expects(:execute_cql).with("AND MORE;")

    CassandraObject::Schema.load StringIO.new(
      "DO\n" +
      " STUFF;\n" +
      "\n" +
      "AND\n" +
      " MORE;\n"
    )
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
gotime-cassandra_object-4.11.6 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.11.5 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.11.4 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.11.3 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.11.2 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.11.1 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.11.0 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.10.5 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.10.4 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.10.3 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.10.2 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.10.1 test/unit/schema/tasks_test.rb
cassandra_object_rails-0.0.1 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.10.0 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.9.2 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.9.1 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.9.0 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.8.1 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.8.0 test/unit/schema/tasks_test.rb
gotime-cassandra_object-4.7.3 test/unit/schema/tasks_test.rb