From a6a3122bf1d2c2f6fc6b0f27b25b14da16a9b976 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 7 Jul 2017 17:14:14 +0200 Subject: 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 --- spec/helpers/table_builder_helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/helpers') 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) -- cgit v1.2.3