Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…lient into barancw-master
  • Loading branch information
sqrrrl committed Apr 4, 2017
2 parents 1c2cf5d + 83012ab commit 7c31e8c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions spec/integration_tests/adsense_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
RSpec.describe Google::Apis::AdsenseV1_4, :if => run_integration_tests? do

before(:context) do
#WebMock.allow_net_connect!
WebMock.allow_net_connect!
@adsense = Adsense::AdSenseService.new
#@adsense.authorization = Google::Auth.get_application_default([Adsense::AUTH_ADSENSE])
#@adsense.authorization.sub = '[email protected]'
#@adsense.authorization.fetch_access_token!
@adsense.authorization = Google::Auth.get_application_default([Adsense::AUTH_ADSENSE])
@adsense.authorization.sub = ENV['GOOGLE_SERVICE_ACCOUNT_IMPERSONATE_EMAIL']
@adsense.authorization.fetch_access_token!
end

it 'should download a report with multiple dimensions' do
pending "Not enabled for test account"
report = @adsense.generate_report( Date.today.to_s, Date.today.to_s, dimension: ["DATE", "AD_UNIT_NAME"] )

report_header_names = report.headers.map { |h| h.name }
Expand All @@ -24,6 +23,6 @@
end

after(:context) do
#WebMock.disable_net_connect!
WebMock.disable_net_connect!
end
end
end

0 comments on commit 7c31e8c

Please sign in to comment.