Skip to content

[WIP] generator: part 2 (version b) of refactor implementation model#643

Closed
hilary wants to merge 12 commits intoexercism:masterfrom
hilary:repository_exercise
Closed

[WIP] generator: part 2 (version b) of refactor implementation model#643
hilary wants to merge 12 commits intoexercism:masterfrom
hilary:repository_exercise

Conversation

@hilary
Copy link
Copy Markdown
Contributor

@hilary hilary commented May 14, 2017

The second version of part 2 of #641

This version instantiates Repository with paths and exercise.

hilary added 12 commits May 14, 2017 11:57
 #available shouldn't depend on the existence of a '<mumble>_case.rb'
file, because that might go away or get changed. We can just look
for the presence of a .meta/generator directory.
leftover from the proc days
Two reasons. Main reason: Implementation shouldn't be thinking in terms of
files. Secondary reason, old name was misleading, as it regenerates the file
when it exists :(
I like this version far better

It's a really clean transition until we get into GeneratorCases. I think the
reason it got uglier in GeneratorCases is because that module is problematic.
a consolidation before we get into the files stuff seriously
@hilary hilary requested a review from Insti May 14, 2017 23:28
end

def test_update_tests_version
# Minitest::Mock doesn't document how to allow the mocked method to be called twice
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just add another expectation.

mock.expect :do_something, 'once'
mock.expect :do_something, 'twice'

But you're right about it not being documented :/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Insti Insti changed the title generator: part 2 (version b) of refactor implementation model [WIP] generator: part 2 (version b) of refactor implementation model May 18, 2017
@Insti
Copy link
Copy Markdown
Contributor

Insti commented Jun 13, 2017

The extraction of Repository is now done in #678

@Insti Insti closed this Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants