diff options
Diffstat (limited to 'spec/services/projects/record_target_platforms_service_spec.rb')
-rw-r--r-- | spec/services/projects/record_target_platforms_service_spec.rb | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/spec/services/projects/record_target_platforms_service_spec.rb b/spec/services/projects/record_target_platforms_service_spec.rb index 7c6907c7a95..bf87b763341 100644 --- a/spec/services/projects/record_target_platforms_service_spec.rb +++ b/spec/services/projects/record_target_platforms_service_spec.rb @@ -51,52 +51,6 @@ RSpec.describe Projects::RecordTargetPlatformsService, '#execute', feature_categ end end end - - describe 'Build iOS guide email experiment' do - shared_examples 'tracks experiment assignment event' do - it 'tracks the assignment event', :experiment do - expect(experiment(:build_ios_app_guide_email)) - .to track(:assignment) - .with_context(project: project) - .on_next_instance - - execute - end - end - - context 'experiment candidate' do - before do - stub_experiments(build_ios_app_guide_email: :candidate) - end - - it 'executes a Projects::InProductMarketingCampaignEmailsService' do - service_double = instance_double(Projects::InProductMarketingCampaignEmailsService, execute: true) - - expect(Projects::InProductMarketingCampaignEmailsService) - .to receive(:new).with(project, Users::InProductMarketingEmail::BUILD_IOS_APP_GUIDE) - .and_return service_double - expect(service_double).to receive(:execute) - - execute - end - - it_behaves_like 'tracks experiment assignment event' - end - - context 'experiment control' do - before do - stub_experiments(build_ios_app_guide_email: :control) - end - - it 'does not execute a Projects::InProductMarketingCampaignEmailsService' do - expect(Projects::InProductMarketingCampaignEmailsService).not_to receive(:new) - - execute - end - - it_behaves_like 'tracks experiment assignment event' - end - end end context 'when project is not an XCode project' do |