diff options
| author | Teddy Wing | 2017-06-08 15:05:59 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-08 15:05:59 +0200 |
| commit | 5166f0b6030b79d47b02743656eff835b523cae1 (patch) | |
| tree | 8720369cd29a800680f9943508263bfc5226c51d /app | |
| parent | c4a5af98e48a51ebbca4e1eaad96da44887e8757 (diff) | |
| download | chouette-core-5166f0b6030b79d47b02743656eff835b523cae1.tar.bz2 | |
TableBuilder spec: Stub `#model` on collection
`referentials` (known as `collection` in the `TableBuilder`) is supposed
to be an `ActiveRecord::Relation` instance. The `#sortable_columns`
method calls `collection.model` in order to dynamically build a table
column header. In order to get the test to the next stage, stub the
`#model` method. Not a huge fan. Ideally, the code wouldn't be so
dynamic, but maybe I'm wrong about that. Still need to think about this
for the refactoring.
Refs #3479
Diffstat (limited to 'app')
0 files changed, 0 insertions, 0 deletions
