-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.brutal.yml
62 lines (55 loc) · 1.21 KB
/
.brutal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
header: |
#!/usr/bin/env ruby
# frozen_string_literal: false
require "simplecov"
::SimpleCov.command_name "Brutal test suite"
::SimpleCov.start
require "./lib/spectus"
require "matchi/be"
require "matchi/eq"
require "matchi/raise_exception"
subject: |
begin
Spectus.%{level}(%{matcher}).call { "foo".%{challenge} }
rescue Expresenter::Fail => e
e
end
contexts:
challenge:
- "upcase"
- "itself"
- 'gsub!("f", "b")'
- "boom"
- "empty?(4)"
level:
- must
- should
- may
- must_not
- should_not
matcher:
- "Matchi::RaiseException.new(NoMethodError)"
- "Matchi::RaiseException.new(ArgumentError)"
- 'Matchi::Eq.new("foo")'
- "Matchi::Be.new(42)"
actuals:
- "%{subject}.level"
- "%{subject}.to_sym"
- "%{subject}.error?"
- "%{subject}.failure?"
- "%{subject}.info?"
- "%{subject}.negate?"
- "%{subject}.failed?"
- "%{subject}.passed?"
- "%{subject}.success?"
- "%{subject}.warning?"
- "%{subject}.emoji"
- "%{subject}.char"
- "%{subject}.colored_char"
- "%{subject}.message"
- "%{subject}.to_s"
- "%{subject}.colored_string"
- "%{subject}.actual.inspect"
- "%{subject}.error.class"
- "%{subject}.got.class"