Sha256: 37edcfcf07abfe76ad7ce6839d9e2a653ff9d253a9a676235256af7e9d6b1f93

Contents?: true

Size: 771 Bytes

Versions: 18

Compression:

Stored size: 771 Bytes

Contents

require 'test_helper'

class Superstore::CassandraSchema::TasksTest < Superstore::TestCase
  if Superstore::Base.adapter.is_a?(Superstore::Adapters::CassandraAdapter)
    test "table_names" do
      assert_equal ['Issues'], Superstore::CassandraSchema.table_names
    end

    test "dump" do
      io = StringIO.new

      Superstore::CassandraSchema.dump(io)
      io.rewind

      assert_match /Issues/, io.read
    end

    test "load" do
      Superstore::CassandraSchema.expects(:keyspace_execute).with("DO STUFF;")
      Superstore::CassandraSchema.expects(:keyspace_execute).with("AND MORE;")

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
superstore-1.2.0 test/unit/cassandra_schema/tasks_test.rb
superstore-1.1.4 test/unit/cassandra_schema/tasks_test.rb
superstore-1.1.3 test/unit/cassandra_schema/tasks_test.rb
superstore-1.1.2 test/unit/cassandra_schema/tasks_test.rb
superstore-1.1.1 test/unit/cassandra_schema/tasks_test.rb
superstore-1.1.0 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.12 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.11 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.10 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.9 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.8 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.7 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.6 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.5 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.4 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.3 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.2 test/unit/cassandra_schema/tasks_test.rb
superstore-1.0.0 test/unit/cassandra_schema/tasks_test.rb