Sha256: 1bb6ceb5bfe7004a0eed39702d91045a9fd98997f5dd990530f173a3a603bfaf
Contents?: true
Size: 685 Bytes
Versions: 11
Compression:
Stored size: 685 Bytes
Contents
require 'test_helper' require 'epom/analytic' class AnalyticTest < ActiveSupport::TestCase test "truth" do assert_kind_of Class, Epom::Analytic end test "analytics" do timestamp = Time.now.to_i * 1000 url_params = { :format => 'CSV', :login => ENV['username'], :timestamp => timestamp, :hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp) } body_params = { :displayIds => true, :range => 'CURRENT_MONTH', :groupBy => 'ADVERTISER,CAMPAIGN,BANNER,SITE,ZONE,PLACEMENT', } response = Epom::Analytic.analytics(url_params, body_params) assert_not_instance_of Fixnum, response end end
Version data entries
11 entries across 11 versions & 1 rubygems