aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/companies
diff options
context:
space:
mode:
authorAlban Peignier2012-04-17 16:08:38 +0200
committerAlban Peignier2012-04-17 16:08:38 +0200
commit30b0118f2523a04d6777c8ec79b3181c128b3bf8 (patch)
treecb1bd017ec89d376328c625fed647073b34b25d9 /spec/views/companies
parent609feda78e6fa4047fa1d3af4f633a856224bd33 (diff)
downloadchouette-core-30b0118f2523a04d6777c8ec79b3181c128b3bf8.tar.bz2
Fixes all specs. Refs #6
Diffstat (limited to 'spec/views/companies')
-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