Commit Graph

1353 Commits

Author SHA1 Message Date
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
Michael Miller f6fc36f60a
Bump version to 0.9.30 2020-12-23 13:56:19 -07:00
Michael Miller 875ca587f3
Show missing values in error output 2020-12-23 13:44:12 -07:00
Michael Miller f465df48d4
Fix copy/paste fail docs 2020-12-23 13:18:36 -07:00
Michael Miller 5ec7e25d57
Remove splat 2020-12-23 12:54:44 -07:00
Michael Miller c720147974
Bump version to 0.9.29 2020-12-23 12:39:05 -07:00
Michael Miller 0540f94823
Add contain_elements and have_elements variants 2020-12-23 12:38:37 -07:00
Michael Miller 27754c9e03
Bump version to 0.9.28 2020-11-07 11:04:34 -07:00
Michael Miller b91103b40a
Handle case where block is provided with return type 2020-11-07 11:04:03 -07:00
Michael Miller 8966c0976b
Allow manual specification of return type 2020-11-07 10:56:33 -07:00
Michael Miller 2cdee0716f
Bump version to 0.9.27 2020-10-01 18:25:29 -06:00
Michael Miller 9ac6121201
New stub syntax to support operator methods
Works like:
  stub :[], index : Int32 { 42 }

Addresses https://github.com/icy-arctic-fox/spectator/issues/14
2020-10-01 18:23:28 -06:00
Michael Miller 93fa6f6e72
Bump version to 0.9.26 2020-09-27 10:35:28 -06:00
Michael Miller e68697a212
Fix stubbed yielding method calling original instead of stub 2020-09-27 10:30:51 -06:00
Michael Miller 0970f02465
Yield instead of forwarding block
Forwarding the block like this captures it, which prevents yield from 
being used.
Addresses https://gitlab.com/arctic-fox/spectator/-/issues/54
2020-09-27 10:14:30 -06:00
Michael Miller a39223ff21
Bump to 0.9.25 2020-09-26 11:03:11 -06:00
Michael Miller a4680f2584
Don't splat values for failed match data
This caused an issue where keys with the same name as existing arguments 
couldn't be used.
In this case, "description" and "failure_message".

Fixes https://github.com/icy-arctic-fox/spectator/issues/13
2020-09-26 10:50:18 -06:00
Michael Miller db284066f6
Bump version to 0.9.24 2020-09-17 10:13:41 -06:00
Michael Miller a0af1e7cd1
Allow string interpolation in some macros
Enables interpolation in example and group descriptions, as well as 
anonymous doubles.
Addresses https://github.com/icy-arctic-fox/spectator/issues/10
2020-09-17 09:35:49 -06:00
Michael Miller 4a7e0c8bd7
Bump version to 0.9.23 2020-08-30 12:44:37 -06:00
Michael Miller a23b2d0753
Workaround for https://gitlab.com/arctic-fox/spectator/-/issues/53 2020-08-30 12:44:07 -06:00
Michael Miller ce248de0d9
Bump version to 0.9.22 2020-08-11 14:37:37 -06:00
Michael Miller 8f0718db86
Handle splat in macro for matcher DSL
Should fix https://github.com/icy-arctic-fox/spectator/issues/8
2020-08-11 14:37:37 -06:00
Michael Miller 9c14c69bba
Change "ditto" to ":ditto:" 2020-08-06 19:20:18 -06:00
Michael Miller 3e3be77d30
Ignore Crystal version for nightly builds 2020-08-06 19:16:05 -06:00