alef 0.114.1

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
raise_error({{ matcher_class }}){% if bases or regex %} { |error|
{% if bases %}
      expect(error).to {% for base in bases %}be_a({{ base }}).or {% endfor %}be_a(RuntimeError)
{% endif %}
{% if regex %}
      expect(error.message =~ {{ regex }} || error.class.name =~ {{ regex }}).to be_truthy
{% endif %}
    }{% endif %}