Closed schultyy closed 10 years ago
User story here means, you can create more smaller tasks from this issue :)
aha, you mean more issues?
yes :)
A user story often describes on a high level what should be done and then you create more concrete tasks from this.
This story does not specify what the setup file is supposed to do, when it will be required and how the module will be made available. Will it be included in the main context?
yes, right. Will fix :)
closed by merge df35b66d37ff8d8dafdca4cdb0d192fc838ad385 from pull request
As a user I want to provide a Ruby file which includes the dependencies for the code examples in markdown files. This is needed for code examples which are not self contained. Self contained in this context means they use classes, modules, methods which are defined in other Ruby files.
This code example in
README.md
calls a method which is defined elsewhere:cats.rb
:So to make this code example working, the user needs to provide a setup file which includes
cats.rb
. Then the methodmake_cat
is callable in the example.The setup module could look like this:
Passing a setup file from the command line looks like this:
At first, all markdown files which should be tested are passed. Then comes a new parameter, called
—setup
. This is followed by the setup file’s name.The setup module is applied to all code examples which are going to be tested. The MiniTest class generated from
CodeSamples
should include the setup module in theApplication
class.