Sha256: 77025b7aebefad0efb6e026bc94d3c4461d42cd2a1176b76313fb7f759e525bc
Contents?: true
Size: 1.45 KB
Versions: 4
Compression:
Stored size: 1.45 KB
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', :hit => true, :context => {'page'=>'recommended'} ) 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 should "track meta like" do begin e = Tamber::Event.metaLike( :user => 'user_jctzgisbru', :property => 'genre', :value => 'sci-fi' ) puts e end end should "untrack meta like" do begin e = Tamber::Event.metaUnlike( :user => 'user_jctzgisbru', :property => 'genre', :value => 'sci-fi' ) puts e end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tamber-0.2.2 | test/event_test.rb |
tamber-0.2.1 | test/event_test.rb |
tamber-0.2.0 | test/event_test.rb |
tamber-0.1.14 | test/event_test.rb |