diff --git a/google-cloud-bigtable/Rakefile b/google-cloud-bigtable/Rakefile index eeaf447f9198..cb09edae9261 100644 --- a/google-cloud-bigtable/Rakefile +++ b/google-cloud-bigtable/Rakefile @@ -178,7 +178,7 @@ desc "Run rubocop on yard examples." task :rubocop_yard_examples do YARD.parse "lib/**/*.rb" registry = YARD::Registry.load_all - examples = registry.all.map { |object| object.tags(:example) }.flatten + examples = registry.all.map { |object| object.tags :example }.flatten dir_name = "rubocop_yard_examples" rm_rf dir_name diff --git a/google-cloud-video-transcoder/samples/acceptance/job_template_test.rb b/google-cloud-video-transcoder/samples/acceptance/job_template_test.rb index 1c35fa24c48e..151f9727f688 100644 --- a/google-cloud-video-transcoder/samples/acceptance/job_template_test.rb +++ b/google-cloud-video-transcoder/samples/acceptance/job_template_test.rb @@ -78,7 +78,7 @@ it "lists the job templates" do expect { - list_job_templates(project_id: project_id, location: location_id) + list_job_templates project_id: project_id, location: location_id }.must_output(%r{Job templates:(.*\s)*projects/#{project_number}/locations/#{location_id}/jobTemplates/#{template_id}}) end diff --git a/google-cloud-video-transcoder/samples/acceptance/job_test.rb b/google-cloud-video-transcoder/samples/acceptance/job_test.rb index 4dbdd6653c95..2bf4bc39ffb0 100644 --- a/google-cloud-video-transcoder/samples/acceptance/job_test.rb +++ b/google-cloud-video-transcoder/samples/acceptance/job_test.rb @@ -212,7 +212,7 @@ it "lists a job" do expect { - list_jobs(project_id: project_id, location: location_id) + list_jobs project_id: project_id, location: location_id }.must_output(%r{Jobs:(.*\s)*projects/#{project_number}/locations/#{location_id}/jobs/#{job_id}}) end end