Sha256: 80de7f0ff0071bc25cabaad2043493e412b33fd54e5da068ffe0fad3093931e8

Contents?: true

Size: 321 Bytes

Versions: 182

Compression:

Stored size: 321 Bytes

Contents

require 'cassandra/mock'
module CassandraObject
  module Mocking
    extend ActiveSupport::Concern
    module ClassMethods
      def use_mock!(really=true)
        if really
          self.connection_class = Cassandra::Mock
        else
          self.connection_class = Cassandra
        end
      end
    end
  end
end

Version data entries

182 entries across 182 versions & 3 rubygems

Version Path
sessionm-cassandra_object-2.7.5 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.7.4 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.7.3 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.7.2 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.7.1 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.7.0 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.6.1 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.6.0 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.9 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.8 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.7 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.6 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.5 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.4 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.3 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.2 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.1 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.5.0 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.4.9 lib/cassandra_object/mocking.rb
sessionm-cassandra_object-2.4.8 lib/cassandra_object/mocking.rb