Skip to content

Commit

Permalink
chore: Clean up a few rubocop warnings (#22255)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Jun 6, 2023
1 parent 1297f12 commit c043811
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google-cloud-bigtable/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c043811

Please sign in to comment.