-
-
Save roelbondoc/d176875b1865f9ed9ec3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'sponsored pushes' do | |
let(:league) { create(:soccer_league) } | |
let(:job_data) do | |
{ | |
tube: @tube_name, | |
message: @message, | |
article_uri: @article_uri, | |
category: @category, | |
league: league | |
primary_tag_uris: @primary_tag_uris, | |
resource_uris: @resource_uris | |
} | |
end | |
before do | |
create(:campaign_sponsored_push, league: league.slug, device: ['android'], message: 'Presented by rspec') | |
end | |
context 'when a sponsored push campaign is active' do | |
before do | |
Beanshed.enqueue(tube_name, job_data) | |
Beanshed::Test.tick_all | |
end | |
it 'generates the correct numbner of payloads' do | |
end | |
it 'generates the correct tags for UA' do | |
end | |
it 'generates and sends the right tags to UrbanAirship' do | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment