Sha256: 1888064ea0e4c9878849f5d4dff195d9f07bb251db709d911f68d97d3c2e0f0a

Contents?: true

Size: 717 Bytes

Versions: 9

Compression:

Stored size: 717 Bytes

Contents

require 'helper'
require 'cassanity/argument_generators/column_family_truncate'

describe Cassanity::ArgumentGenerators::ColumnFamilyTruncate do
  let(:column_family_name) { 'apps' }

  describe "#call" do
    it "returns array of arguments" do
      cql = "TRUNCATE #{column_family_name}"
      expected = [cql]
      subject.call(column_family_name: column_family_name).should eq(expected)
    end

    context "with :keyspace_name" do
      it "returns array of arguments" do
        cql = "TRUNCATE foo.#{column_family_name}"
        expected = [cql]
        subject.call({
          keyspace_name: :foo,
          column_family_name: column_family_name
        }).should eq(expected)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cassanity-0.6.0 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb
cassanity-0.6.0.beta5 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb
cassanity-0.6.0.beta4 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb
cassanity-0.6.0.beta3 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb
cassanity-0.6.0.beta2 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb
cassanity-0.6.0.beta1 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb
cassanity-0.5.1 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb
cassanity-0.5.0 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb
cassanity-0.4.0 spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb