Skip to content

Instantly share code, notes, and snippets.

@roelbondoc
Forked from noam87/gist:56bd4de7be7e023ffc49
Last active August 29, 2015 14:23
Show Gist options
  • Save roelbondoc/d176875b1865f9ed9ec3 to your computer and use it in GitHub Desktop.
Save roelbondoc/d176875b1865f9ed9ec3 to your computer and use it in GitHub Desktop.
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