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

Remove marriage-abroad outcome_cp_consular precalculate blocks #2382

Conversation

chrisroos
Copy link
Contributor

I'm continuing to refactor marriage-abroad. This branch removes the precalculate blocks from outcome_cp_consular by adding logic to the MarriageAbroadCalculator.

I'm refactoring marriage-abroad so that the `MarriageAbroadCalculator`
contains everything necessary to render the outcomes. Adding this method
will allow me to remove the `:institution_name` in a subsequent commit.

I've added the `civil_partnership` prefix to the new method name as the
value is only displayed in a civil partnership outcome.
And remove the now unused `:institution_name` precalculate block.
The marriage-abroad regression tests are passing so I'm updating the
checksum data accordingly.

Updated using:

    $ rails r script/generate-checksums-for-smart-answer.rb \
    marriage-abroad
@floehopper
Copy link
Contributor

This looks good to me.

@floehopper floehopper self-assigned this Mar 19, 2016
@chrisroos
Copy link
Contributor Author

Thanks for reviewing, @floehopper. This is already up to date with master so I'm going to merge it.

chrisroos added a commit that referenced this pull request Mar 19, 2016
…-cp-consular-precalculate-blocks

Remove marriage-abroad outcome_cp_consular precalculate blocks
@chrisroos chrisroos merged commit 975ba09 into master Mar 19, 2016
@chrisroos chrisroos deleted the remove-marriage-abroad-outcome-cp-consular-precalculate-blocks branch March 19, 2016 22:01
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.

None yet

2 participants