mtsmfm / hubot-test-helper

Helper for testing hubot script
MIT License
115 stars 40 forks source link

Helper class can now accept array of files/dirs to test with #35

Closed mosheBelostotsky closed 8 years ago

mosheBelostotsky commented 8 years ago

This implementation adding the ability to load multiple hubot-scripts when calling

   helper = new Helper(['dir_or_file', 'another_dir_or_file'])

But do not break the original implementation of:

   helper = new Helper('another_dir_or_file')

This closes #34

mtsmfm commented 8 years ago

Thank you for your PR :exclamation: :smile:

Could you show me whole test code which uses your changing? It is very useful to understand the use case.

mosheBelostotsky commented 8 years ago

@mtsmfm here is an example from our generator: https://github.com/eedevops/generator-hubot-enterprise/blob/master/generators/script/templates/test/template-test.coffee#L28

mtsmfm commented 8 years ago

Thank you!

I'll merge and release new version after adding some cosmetics changing :smile:

mosheBelostotsky commented 8 years ago

@mtsmfm THANKS! :)