diff --git a/app/models/project.rb b/app/models/project.rb index 8bc728587..2de82e606 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -118,8 +118,6 @@ def send_notifications if Panoptes.project_request.recipients request_type = if saved_change_to_beta_requested? && beta_requested "beta" - elsif saved_change_to_launch_requested? && launch_requested - "launch" end ProjectRequestEmailWorker.perform_async(request_type, id) if request_type end diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 7c0251713..2dd7f88c4 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -483,25 +483,6 @@ end end end - - context "when launch_requested changed" do - let(:field) { "launch_requested" } - - context "when true" do - let(:value) { true } - it 'should queue the worker' do - expect(ProjectRequestEmailWorker).to receive(:perform_async).with("launch", project.id) - end - end - - context "when false" do - let(:value) { false } - - it 'should not queue the worker' do - expect(ProjectRequestEmailWorker).not_to receive(:perform_async) - end - end - end end end