alef 0.115.5

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
raise_error({{ matcher_class }}){% if bases or regex or field_checks %} { |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 %}
{% if field_checks %}
{{ field_checks }}
{% endif %}
    }{% endif %}