aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorjpl2016-10-14 10:55:26 +0200
committerjpl2016-10-14 10:55:44 +0200
commit1812df89490c2a8833eb768478fa333c4fd9c257 (patch)
tree1abc18f6424800dc1214086f32812ad543659eea /spec
parent504a817e97f067bb9399d775402d228e26246071 (diff)
downloadchouette-core-1812df89490c2a8833eb768478fa333c4fd9c257.tar.bz2
updating table builder on companies
Diffstat (limited to 'spec')
-rw-r--r--spec/views/companies/index.html.erb_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/views/companies/index.html.erb_spec.rb b/spec/views/companies/index.html.erb_spec.rb
index 5bb528744..6f244064d 100644
--- a/spec/views/companies/index.html.erb_spec.rb
+++ b/spec/views/companies/index.html.erb_spec.rb
@@ -3,7 +3,7 @@ require 'spec_helper'
describe "/companies/index", :type => :view do
let!(:line_referential) { assign :line_referential, create(:line_referential) }
- let!(:companies) { assign :companies, Array.new(2) { create(:company, line_referential: line_referential) }.paginate }
+ let!(:companies) { assign :companies, CompanyDecorator.decorate_collection(Array.new(2) { create(:company, line_referential: line_referential) }.paginate) }
let!(:search) { assign :q, Ransack::Search.new(Chouette::Company) }
# Fixme #1795