aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers
diff options
context:
space:
mode:
authorTeddy Wing2017-06-12 14:23:58 +0200
committerTeddy Wing2017-06-12 14:23:58 +0200
commit91f6bc0b56d4b51645470c9f470d874f92d38b50 (patch)
treeedd09e35603c1fbbc7d63867440226b2ea902463 /spec/helpers
parentf2129a26cdf9cf986832c8a780f1e35c225a1df9 (diff)
downloadchouette-core-91f6bc0b56d4b51645470c9f470d874f92d38b50.tar.bz2
TableBuilder spec: Fix columns in sortable test
I had mistakenly copied the code from `app/views/companies/index.html.slim`. Instead, the code from the page I wanted was actually supposed to come from `app/views/referential_companies/index.html.slim`. Refs #3479
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/table_builder_helper_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb
index ab41a0936..e29112653 100644
--- a/spec/helpers/table_builder_helper_spec.rb
+++ b/spec/helpers/table_builder_helper_spec.rb
@@ -191,8 +191,11 @@ describe TableBuilderHelper, type: :helper do
html_str = helper.table_builder_2(
companies,
{
- 'Oid' => Proc.new { |n| n.try(:objectid).try(:local_id) },
- :name => 'name'
+ 'ID Codif' => Proc.new { |n| n.try(:objectid).try(:local_id) },
+ :name => 'name',
+ :phone => 'phone',
+ :email => 'email',
+ :url => 'url'
},
links: [:show, :edit, :delete],
cls: 'table has-search'