Skip to content

Commit 028be5f

Browse files
committed
Fix from rubocop.
1 parent f70a8c6 commit 028be5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test/controllers/api/demo/movies_controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_subfield_predicate
153153
get(:index, as: :json, params: {"main_genre.name_in" => "History,Fantasy", page_size: 0})
154154
assert_response(:success)
155155
assert_equal(
156-
Genre.where(name: ["History", "Fantasy"]).collect { |g| g.main_movies }.flatten.count,
156+
Genre.where(name: ["History", "Fantasy"]).collect(&:main_movies).flatten.count,
157157
@response.parsed_body.length,
158158
)
159159
end

0 commit comments

Comments
 (0)