diff options
| author | Teddy Wing | 2017-07-07 17:14:14 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-07-12 11:06:03 +0200 | 
| commit | a6a3122bf1d2c2f6fc6b0f27b25b14da16a9b976 (patch) | |
| tree | e74246044e2311b2b3c91ad433dd2f56e453cd6b /spec/helpers | |
| parent | 288c5980dc7cd9f143b88d5a8492c006c5f46bb7 (diff) | |
| download | chouette-core-a6a3122bf1d2c2f6fc6b0f27b25b14da16a9b976.tar.bz2 | |
CompanyDecorator#action_links: Rename `line_referential` context param
Rename this to `referential` to be more generic. This is because we
could be passing both `Referential`s and `LineReferential`s into this
parameter.
In `CompaniesController`, we use a `LineReferential` while in
`ReferentialCompaniesController` we use `Referential`.
Refs #3479
Diffstat (limited to 'spec/helpers')
| -rw-r--r-- | spec/helpers/table_builder_helper_spec.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb index 4f7c1bd69..c536a4c62 100644 --- a/spec/helpers/table_builder_helper_spec.rb +++ b/spec/helpers/table_builder_helper_spec.rb @@ -302,7 +302,7 @@ describe TableBuilderHelper, type: :helper do        companies = ModelDecorator.decorate(          companies,          with: CompanyDecorator, -        context: {line_referential: line_referential} +        context: { referential: line_referential }        )        stub_policy_scope(company) | 
