Upstream sync

This commit is contained in:
Senad Uka
2020-08-20 06:50:51 +02:00
parent 190ff2854b
commit 41bf88e358
127 changed files with 1399 additions and 565 deletions

View File

@@ -87,14 +87,6 @@ RSpec.describe MaterialReleasesController, type: :controller do
}.to have_enqueued_job(SetTagsForReleasableJob).with(MaterialRelease.last)
end
it "logs analytics" do
expect {
post :create, params: { project_id: project, material_release: material_release_params }
}.to(
have_enqueued_job(TrackAnalyticsJob).with(user, account, :track_create_non_native_release, release_type: "MaterialRelease", user_agent: "Rails Testing", user_ip: "0.0.0.0")
)
end
context "when the record would be invalid" do
before do
allow_any_instance_of(MaterialRelease).to receive(:save).and_return(false)