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