Commit 6ebe7316 authored by Alex Kalderimis's avatar Alex Kalderimis

Use be_sorted DSL methods

This uses the new be_sorted DSL methods, which do the same thing, but
are a little more descriptive and robust to changes.
parent 9c9cbf92
......@@ -44,7 +44,7 @@ RSpec.describe Resolvers::Boards::EpicBoardsResolver do
it 'returns epic boards in the group ordered by name' do
expect(result)
.to contain_exactly(epic_board2, epic_board1)
.and be_sorted(:name, :asc)
.and be_sorted.asc.by(&:name)
end
context 'when epic_boards flag is disabled' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment