From 4ce4f81ed51ec5215ecef431e6ed2cbbbef0952a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 9 Jun 2017 11:57:26 +0200 Subject: TableBuilder spec: Get values dynamically from test referential Replace the hard-coded `Referential` fields with dynamic ones from the factory-generated referential we're using to test. This gets our expected output nearly matching the actual output. Pretty cool! Refs #3479 --- spec/helpers/table_builder_helper_spec.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb index 4f4cffe61..a58905244 100644 --- a/spec/helpers/table_builder_helper_spec.rb +++ b/spec/helpers/table_builder_helper_spec.rb @@ -58,26 +58,26 @@ describe TableBuilderHelper, type: :helper do -
+
- Referential Yanis Gaillard + #{referential.name}
En préparation
- STIF - 01/05/2017 > 31/08/2017 - 1 - 02/05/2017 - 02/05/2017 + #{referential.organisation.name} + - + #{referential.lines.count} + #{I18n.localize(referential.created_at, format: :short)} + #{I18n.localize(referential.updated_at, format: :short)}
-- cgit v1.2.3