Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.2.0
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 20 lines (13 sloc) 0.485 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
require_relative 'shared_setup'

client = AppsCF
adapter = Adapter[:cassanity].new(client)
adapter.clear

id = CassandraCQL::UUID.new

adapter.write(id, name: 'GitHub')
puts 'Should be {id: ..., name: "GitHub"}: ' + adapter.read(id).inspect

adapter.delete(id)
puts 'Should be nil: ' + adapter.read(id).inspect

adapter.write(id, name: 'GitHub')
adapter.clear
puts 'Should be nil: ' + adapter.read(id).inspect

puts 'Should be {foo: "bar"}: ' + adapter.fetch(id, {foo: 'bar'}).inspect
Something went wrong with that request. Please try again.