Sha256: 8e8846c1a2204584cdd4fa87dee222d9cd0fcf78b93243762c0ccadd889b96a9
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) module Tamber class EventTest < Test::Unit::TestCase should "be trackable" do begin e = Tamber::Event.track( :user => 'user_jctzgisbru', :item => 'item_i5gq90scc1', :behavior => 'mention', :get_recs => {} ) puts e end end should "be retrievable" do begin e = Tamber::Event.retrieve( :user => 'user_jctzgisbru', ) puts e end end should "be batchable" do begin e = Tamber::Event.batch( :events => [ { :user => 'user_y7u9sv6we0', :item => 'item_u9nlytt3w5', :behavior => 'mention' }, { :user => 'user_y7u9sv6we0', :item => 'item_i5gq90scc1', :behavior => 'mention' } ] ) puts e end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tamber-0.1.4 | test/event_test.rb |