test/epom/placement_test.rb in epom-0.9.9 vs test/epom/placement_test.rb in epom-0.10

- old
+ new

@@ -49,7 +49,22 @@ assert_instance_of Hash, response assert_instance_of Fixnum, response['id'] assert response['success'] end + test "set_placement_pricing" do + timestamp = Time.now.to_i * 1000 + url_params = { + :hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp), + :timestamp => timestamp, + :username => ENV['username'], + :placementId => ENV['placement_id'], + } + body_params = '{"paymentModel":"FIXED_PRICE","pricingType":"CPC","price":1.2}' + + response = Epom::Placement.set_placement_pricing(url_params, body_params) + assert_instance_of Hash, response + assert response['success'] + end + define_get_tests_auto(Epom::Placement) end \ No newline at end of file