Skip to content

Commit be957aa

Browse files
author
Andrei Shaidurov
committed
Failing test
1 parent 18eccd6 commit be957aa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/api-pagination_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,15 @@
2626
}
2727
)
2828
end
29+
30+
describe '.pages_from' do
31+
subject { described_class.pages_from collection }
32+
33+
context 'on empty collection' do
34+
let(:collection) { ApiPagination.paginate [], page: 1 }
35+
36+
it { is_expected.to be_empty }
37+
end
38+
end
2939
end
3040
end

0 commit comments

Comments
 (0)