Skip to content

bin/generator: Remove version compensation.#538

Closed
Insti wants to merge 2 commits intoexercism:masterfrom
Insti:Remove_version_compensation
Closed

bin/generator: Remove version compensation.#538
Insti wants to merge 2 commits intoexercism:masterfrom
Insti:Remove_version_compensation

Conversation

@Insti
Copy link
Copy Markdown
Contributor

@Insti Insti commented Jan 14, 2017

All the test templates were updating the version:

assert_equal <%= version.next %>, BookKeeping::VERSION

But the responsibility for mainlining the template version belongs with the generator, not the template.

So we update the template to use the version passed to it:

assert_equal <%= version %>, BookKeeping::VERSION

And once the templates have been updated, we can delete the code required to compensate for the version incrementing.

Insti added 2 commits January 14, 2017 16:54
The responsibility for maintaining the template version belongs with the
generator, not the template.
Once the templates have been updated, we no longer need to compensate
for their version incrementing.
@Insti
Copy link
Copy Markdown
Contributor Author

Insti commented Jan 14, 2017

Superseded by: #540

@Insti Insti closed this Jan 14, 2017
@Insti Insti deleted the Remove_version_compensation branch January 14, 2017 17:58
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.

1 participant