Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert calculate-employee-redundancy-pay to use ERB templates for questions #2117

Conversation

floehopper
Copy link
Contributor

No description provided.

@chrisroos
Copy link
Contributor

Looks good to me.

@chrisroos chrisroos self-assigned this Nov 18, 2015
@chrisroos chrisroos added the LGTM label Nov 18, 2015
This results in more aesthetically pleasing HTML and should make it easier to
convert the flow to use ERB templates for questions.

I've updated the regression test artefacts and checksums accordingly.
I ran the following command:

    $ rails r script/convert-question-i18-yaml-to-erb-templates.rb lib/smart_answer_flows/calculate-employee-redundancy-pay
    Writing template: date_of_redundancy.govspeak.erb
    Writing template: age_of_employee.govspeak.erb
    Writing template: years_employed.govspeak.erb (WARNING: contains interpolation)
    Writing template: weekly_pay_before_tax.govspeak.erb

    Deleting i18n YAML: calculate-employee-redundancy-pay.yml

    Now insert `use_erb_templates_for_questions` at top of flow: calculate-employee-redundancy-pay.rb
This was not dealt with automatically by the conversion script.
The change to ERB templates has introduced a few extra newlines in the
question page HTML, but none of them affect the content viewable by the user.

I verified that the changes were all only blank lines using the following
command:

    $ git diff --ignore-blank-lines
Re-generating the checksums has removed the i18n YAML file and added the new
question templates as I expected.
@floehopper floehopper force-pushed the convert-calculate-employee-redundancy-pay-to-use-erb-templates-for-questions branch from dd9e3b2 to 21f8836 Compare November 18, 2015 19:47
floehopper added a commit that referenced this pull request Nov 18, 2015
…undancy-pay-to-use-erb-templates-for-questions

Convert calculate-employee-redundancy-pay to use ERB templates for questions
@floehopper floehopper merged commit 14e80d7 into master Nov 18, 2015
@floehopper floehopper deleted the convert-calculate-employee-redundancy-pay-to-use-erb-templates-for-questions branch November 18, 2015 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants