Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions spec/mixpanel-ruby/groups_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$set' => {
'created_at' => '2013-01-02T03:04:05'
}
Expand All @@ -54,7 +54,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$set' => {
'created_at' => '2013-01-02T02:04:05'
}
Expand All @@ -70,7 +70,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$set' => {
'created_at' => '2013-01-02T02:04:05'
}
Expand All @@ -86,7 +86,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$set_once' => {
'$groupname' => 'Mixpanel',
'$grouprevenue' => 200
Expand All @@ -102,7 +102,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$remove' => {
'Albums' => 'Diamond Dogs'
}
Expand All @@ -117,7 +117,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$union' => {
'Albums' => ['Diamond Dogs']
}
Expand All @@ -130,7 +130,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$unset' => ['Albums']
}]])
end
Expand All @@ -141,7 +141,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$unset' => ['Albums', 'Vinyls']
}]])
end
Expand All @@ -152,7 +152,7 @@
'$token' => 'TEST TOKEN',
'$group_key' => 'TEST GROUP KEY',
'$group_id' => 'TEST GROUP ID',
'$time' => @time_now.to_i * 1000,
'$time' => (@time_now.to_f * 1000).to_i,
'$delete' => ''
}]])
end
Expand Down