Skip to content

Commit 1750b11

Browse files
committed
The PaginatedCollection specs rely on routing. Ensure we have our defaults loaded.
1 parent d07bf4f commit 1750b11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/unit/views/components/paginated_collection_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
Kaminari.paginate_array(posts).page(1).per(5)
1010
end
1111

12+
before :all do
13+
load_defaults!
14+
reload_routes!
15+
end
16+
1217
before do
1318
request.stub!(:query_parameters).and_return({:controller => 'admin/posts', :action => 'index', :page => '1'})
1419
controller.params = {:controller => 'admin/posts', :action => 'index'}

0 commit comments

Comments
 (0)