Commit Graph

14 Commits

Author SHA1 Message Date
f3e0f666cb Use test-runner.sh instead of homegrown test.sh 2014-05-26 13:45:21 +01:00
807d1ba73d Change behavior of stub_called_times
It now only ever returns the the number of times the stub has been
called. To assert if it has been called exactly X number of times, use
`stub_called_exact_times` instead.
2014-03-22 14:05:33 +00:00
a6741d903c Add stub_called_with and related functions 2014-03-22 13:43:27 +00:00
2869bf2f93 Fix comments in test 2014-03-22 12:45:41 +00:00
721226618c Change when called state is reset
This allows checking if a stub was called even after it's been restored
to it's original. Called state is only reset when a new stub is created
for the same command.
2014-03-19 23:55:39 +00:00
13a571b9a3 Add stub_called_at_most_times function 2014-03-19 23:28:07 +00:00
32af661b2f Add stub_called_at_least_times function 2014-03-19 23:27:31 +00:00
5af71ab2fd Add stub_called_times function 2014-03-19 23:27:03 +00:00
cd5eeda4c9 Add stub_called function 2014-03-19 23:26:39 +00:00
0c4a5d11ee Ensure stub can be used multiple times on the same command
Ensures that the original bash function is preserved even if it is
stubbed multiple times before a restore.
2014-03-16 01:57:58 +00:00
ef231e420a Default stub to not echoing anything unless specified 2014-03-16 01:57:34 +00:00
911b34cf69 Don't include assert.sh in the git repo itself
Instead, assert.sh is now downloaded if needed when you run make test.
2014-03-16 00:42:03 +00:00
4cf9f6e944 Ensure test cases clean up after themselves 2014-03-16 00:10:58 +00:00
d1f0b85a2c Initial commit 2014-03-15 23:45:58 +00:00