aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/companies/index.html.erb_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/companies/index.html.erb_spec.rb')
-rw-r--r--spec/views/companies/index.html.erb_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/views/companies/index.html.erb_spec.rb b/spec/views/companies/index.html.erb_spec.rb
index 9f4b00649..3c2df6c45 100644
--- a/spec/views/companies/index.html.erb_spec.rb
+++ b/spec/views/companies/index.html.erb_spec.rb
@@ -3,7 +3,8 @@ require 'spec_helper'
describe "/companies/index" do
let!(:referential) { assign( :referential, Factory(:referential) ) }
- let!(:companies) { assign( :companies, Array.new(2) { Factory(:company) } ) }
+ let!(:companies) { assign :companies, Array.new(2) { Factory(:company) }.paginate }
+ let!(:search) { assign :q, Ransack::Search.new(Chouette::Company) }
it "should render a show link for each group" do
render