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