diff options
| author | Teddy Wing | 2017-06-15 11:13:02 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-15 11:13:02 +0200 |
| commit | 0f013cdbb198956d095df5b0bb15a7ac9dac98d0 (patch) | |
| tree | 68ffa72eca5ff708177e587217ec09d0bc238a2d | |
| parent | d29cc6cd8fd1a4b6ffbd16968376c0a6744aac6a (diff) | |
| download | chouette-core-0f013cdbb198956d095df5b0bb15a7ac9dac98d0.tar.bz2 | |
TableBuilder spec: Decorate referential in "builds a table" spec
In order to properly build the table, the objects in the collection
passed to the table builder need to be decorated to add the
`#action_links` method.
Need to fix the other test too, but we don't have a `CompanyDecorator`
yet.
Refs #3479
| -rw-r--r-- | spec/helpers/table_builder_helper_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb index 7e2d617a3..c855e54c3 100644 --- a/spec/helpers/table_builder_helper_spec.rb +++ b/spec/helpers/table_builder_helper_spec.rb @@ -39,6 +39,8 @@ describe TableBuilderHelper, type: :helper do id: referentials[0].workbench.id }) + referentials.map! { |referential| referential.decorate } + expected = <<-HTML <table class="table has-filter has-search"> <thead> |
