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

@@ -90,14 +90,6 @@ RSpec.describe LocationReleasesController, type: :controller do
}.to have_enqueued_job(SetTagsForReleasableJob).with(LocationRelease.last)
end
it "logs analytics" do
expect {
post :create, params: { project_id: project, location_release: location_release_params }
}.to(
have_enqueued_job(TrackAnalyticsJob).with(user, account, :track_create_non_native_release, release_type: "LocationRelease", 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(LocationRelease).to receive(:save).and_return(false)