Sha256: 0e9b7dc2abda0c3e69c48a3650e0cd7f705a5cc5c934606a89bb4b46071eea29
Contents?: true
Size: 784 Bytes
Versions: 24
Compression:
Stored size: 784 Bytes
Contents
require 'test_helper' require 'epom/ad_unit' class AdUnitTest < ActiveSupport::TestCase test "truth" do assert_kind_of Class, Epom::AdUnit end test "get_ad_unit_list" do timestamp = Time.now.to_i * 1000 url_params = { } body_params = { :hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp), :timestamp => timestamp, :username => ENV['username'], } response = Epom::AdUnit.get_ad_unit_list(url_params, body_params) assert_instance_of Array, response if response.count > 0 first = response[0] assert_instance_of Fixnum, first['id'] assert_instance_of Fixnum, first['height'] assert_instance_of Fixnum, first['width'] assert_instance_of String, first['name'] end end end
Version data entries
24 entries across 24 versions & 1 rubygems