Michael Miller
|
7210b8e11c
|
Test class method usage
|
2021-07-10 23:04:02 -06:00 |
|
Michael Miller
|
766b6b17c7
|
Add test for https://github.com/icy-arctic-fox/spectator/issues/33
|
2021-07-10 22:51:47 -06:00 |
|
Michael Miller
|
dba20757f3
|
Add test for https://github.com/icy-arctic-fox/spectator/issues/32
|
2021-07-10 22:44:43 -06:00 |
|
Michael Miller
|
4d030fb85a
|
Fix no_args being passed incorrectly
|
2021-07-10 22:43:54 -06:00 |
|
Michael Miller
|
d9bb8e33fe
|
Fix finding stubs on types (static methods)
|
2021-07-10 22:41:10 -06:00 |
|
Michael Miller
|
23fd075d51
|
Add stub when using expect().to receive()
This appears to match RSpec's behavior.
|
2021-07-10 20:28:51 -06:00 |
|
Michael Miller
|
384fb3093f
|
Allow stubs returning nil to be used on NoReturn calls
|
2021-07-10 20:19:10 -06:00 |
|
Michael Miller
|
e47ae613a5
|
Check for and allow expected exits
|
2021-07-10 19:27:01 -06:00 |
|
Michael Miller
|
35cb0b527e
|
Use ExampleFailed instead of ExpectationFailed
|
2021-07-10 18:15:01 -06:00 |
|
Michael Miller
|
5f61a24656
|
Provide default stub for Process.exit
Prevent terminating the process from within a test.
|
2021-07-10 14:18:07 -06:00 |
|
Michael Miller
|
294bd61a25
|
Don't force top-level namespace
|
2021-07-10 14:17:14 -06:00 |
|
Michael Miller
|
b07e13aeb4
|
Remove custom handling of NoReturn
|
2021-07-10 13:57:23 -06:00 |
|
Michael Miller
|
a395e26bae
|
Revert "Fix methods not being stubbed with expect().to receive syntax"
This reverts commit 1c865d1f4b .
|
2021-07-10 13:21:21 -06:00 |
|
Michael Miller
|
06f9f380c9
|
Workaround for stubbing NoReturn method with Nil
Fixes spec/issues/github_issue_29_spec.cr:15
|
2021-07-10 12:54:09 -06:00 |
|
Michael Miller
|
82f26dbb91
|
Don't return nil for NoReturn stubs
Raise instead, which prevents making the method's return type nilable.
|
2021-07-08 11:36:07 -06:00 |
|
Michael Miller
|
78de2be994
|
Bump version to 0.9.39
|
2021-07-02 21:59:16 -06:00 |
|
Michael Miller
|
f728ab6ad7
|
Add test case handling NoReturn stub and top-level methods (exit)
Fixes https://github.com/icy-arctic-fox/spectator/issues/29
|
2021-07-02 21:55:42 -06:00 |
|
Michael Miller
|
92dbfc2a8e
|
Avoid calling NoReturn methods
|
2021-07-02 21:52:56 -06:00 |
|
Michael Miller
|
1c865d1f4b
|
Fix methods not being stubbed with expect().to receive syntax
|
2021-07-02 21:45:16 -06:00 |
|
Michael Miller
|
83ab5f56f0
|
Use previous_def if method was defined in class
|
2021-07-02 21:01:41 -06:00 |
|
Michael Miller
|
a0537484f4
|
Allow creation of doubles without a definition
Utilizes anonymous doubles to implement this.
Fixes https://github.com/icy-arctic-fox/spectator/issues/30
|
2021-07-02 19:18:14 -06:00 |
|
Michael Miller
|
d4e2954725
|
Remove Nop checks
|
2021-07-02 18:56:24 -06:00 |
|
Michael Miller
|
e3f6fb3c7c
|
Add no_args support for stubs
Fixes https://github.com/icy-arctic-fox/spectator/issues/28
|
2021-07-02 18:43:39 -06:00 |
|
Michael Miller
|
92f758084d
|
Bump version to 0.9.38
|
2021-05-27 15:20:11 -06:00 |
|
Michael Miller
|
edb18dcf95
|
Fix for default logger being cleaned up before Spectator runs
Resolves https://github.com/icy-arctic-fox/spectator/issues/27
|
2021-05-27 15:17:27 -06:00 |
|
Michael Miller
|
55398709de
|
Bump version to 0.9.37
|
2021-05-19 19:51:08 -06:00 |
|
Michael Miller
|
e3576c8924
|
Add support for be === and be =~
Addresses https://github.com/icy-arctic-fox/spectator/issues/26
|
2021-05-19 19:46:46 -06:00 |
|
Michael Miller
|
18fb2d3879
|
Bump version to 0.9.36
|
2021-04-25 23:39:26 -06:00 |
|
Michael Miller
|
f0b524dc47
|
Remove workaround
https://github.com/icy-arctic-fox/spectator/issues/1 should be resolved
by https://github.com/crystal-lang/crystal/pull/8234
|
2021-04-20 19:27:41 -06:00 |
|
Michael Miller
|
25638d766e
|
Bump version to 0.9.35
|
2021-04-18 18:08:08 -06:00 |
|
Michael Miller
|
93e270f87a
|
Support variables and methods for type matcher (be_a).
Addresses https://github.com/icy-arctic-fox/spectator/issues/25
|
2021-04-17 09:38:29 -06:00 |
|
Michael Miller
|
2ec6a31f34
|
Update README to reference latest version
|
2021-03-31 15:07:43 -06:00 |
|
Michael Miller
|
347e07e104
|
Update CHANGELOG
|
2021-03-31 15:07:00 -06:00 |
|
Michael Miller
|
6481403c6f
|
Bump version to 0.9.34
|
2021-03-31 15:01:01 -06:00 |
|
Michael Miller
|
10d597b951
|
Merge branch 'issues/19'
|
2021-03-31 15:00:16 -06:00 |
|
matthewmcgarvey
|
91ea9e6cab
|
Comment out failing expectation with reference to open issue
|
2021-03-30 15:31:23 -04:00 |
|
matthewmcgarvey
|
5bd911341b
|
Set end_line equal to line if end_line not provided
|
2021-03-30 15:29:51 -04:00 |
|
matthewmcgarvey
|
8fafd2467d
|
Allow matching any line number of example in filter
|
2021-03-30 00:18:08 -04:00 |
|
Michael Miller
|
5f15891a41
|
Crystal 1.0.0 and Spectator 0.9.33
|
2021-03-22 17:05:28 -06:00 |
|
Michael Miller
|
e0c4d2ac3e
|
Bump version to 0.9.32
|
2021-02-03 10:08:46 -07:00 |
|
Michael Miller
|
8d48e441b2
|
Fix generating source from brace-less examples.
Addresses https://github.com/icy-arctic-fox/spectator/issues/20
|
2021-02-03 10:06:00 -07:00 |
|
Michael Miller
|
eee5d3888d
|
Specify version in dependency snippet
|
2021-01-23 19:19:44 -07:00 |
|
Michael Miller
|
b583e88422
|
Add changelog
|
2021-01-23 19:17:56 -07:00 |
|
Michael Miller
|
c2d5bdd5d1
|
Bump version to 0.9.31
|
2021-01-08 15:32:42 -07:00 |
|
Michael Miller
|
2ecd4ded6d
|
Fix line numbers being wrong with macro expansion
Addresses https://github.com/icy-arctic-fox/spectator/issues/18
|
2021-01-08 15:32:15 -07:00 |
|
Michael Miller
|
891cd4bbf7
|
Change includes to has
|
2020-12-23 14:39:24 -07:00 |
|
Michael Miller
|
20caed9262
|
Add contain matcher improvements to have matcher
|
2020-12-23 14:38:30 -07:00 |
|
Michael Miller
|
edf8ae36df
|
Fix negated contain case
|
2020-12-23 14:19:40 -07:00 |
|
Michael Miller
|
a2ef0fa46a
|
Consistent comments
|
2020-12-23 14:17:05 -07:00 |
|
Michael Miller
|
de1af7178c
|
Fix string usage with contain matcher
|
2020-12-23 14:11:50 -07:00 |
|