Skip to content

Commit

Permalink
Fix redundant times loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindew committed May 4, 2021
1 parent db6ae50 commit ef22be9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@
"current" => "/v2/notifications?page=3&template_type=email&status=delivered",
"next" => "/v2/notifications?page=3&template_type=email&status=delivered",
},
"notifications" => 1.times.map do
attributes_for(:client_notification)[:body]
end,
"notifications" => [attributes_for(:client_notification)[:body]],
}
end
end
Expand Down

0 comments on commit ef22be9

Please sign in to comment.