Michael Miller 2022-08-07 14:58:09 -06:00
parent 02027cda53
commit 17a3ca3ac7
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
3 changed files with 16 additions and 2 deletions

View file

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- `expect_raises` with block and no arguments produces compilation error. [#77](https://gitlab.com/arctic-fox/spectator/-/issues/77)
## [0.11.1] - 2022-07-18
### Fixed
- Workaround nilable type issue with memoized value. [#76](https://gitlab.com/arctic-fox/spectator/-/issues/76)
@ -391,7 +395,7 @@ This has been changed so that it compiles and raises an error at runtime with a
First version ready for public use.
[Unreleased]: https://gitlab.com/arctic-fox/spectator/-/compare/v0.11.0...master
[Unreleased]: https://gitlab.com/arctic-fox/spectator/-/compare/v0.11.1...master
[0.11.1]: https://gitlab.com/arctic-fox/spectator/-/compare/v0.11.0...v0.11.1
[0.11.0]: https://gitlab.com/arctic-fox/spectator/-/compare/v0.10.6...v0.11.0
[0.10.6]: https://gitlab.com/arctic-fox/spectator/-/compare/v0.10.5...v0.10.6

View file

@ -0,0 +1,10 @@
require "../spec_helper"
# https://gitlab.com/arctic-fox/spectator/-/issues/77
Spectator.describe "GitLab Issue #77" do
it "fails" do
expect_raises do
raise "Error!"
end
end
end

View file

@ -790,7 +790,7 @@ module Spectator::DSL
# ```
# expect_raises { raise "foobar" }
# ```
macro expect_raises
macro expect_raises(&block)
expect {{block}}.to raise_error
end