Module: Polyrun::Quick::Matchers
- Included in:
- ExampleRunner
- Defined in:
- lib/polyrun/quick/matchers.rb
Instance Method Summary collapse
- #be_falsey ⇒ Object
- #be_truthy ⇒ Object
- #eq(expected) ⇒ Object
- #expect(actual) ⇒ Object
- #include(*expected) ⇒ Object
- #match(pattern) ⇒ Object
Instance Method Details
#be_falsey ⇒ Object
37 38 39 |
# File 'lib/polyrun/quick/matchers.rb', line 37 def be_falsey FalseyMatcher.new end |
#be_truthy ⇒ Object
33 34 35 |
# File 'lib/polyrun/quick/matchers.rb', line 33 def be_truthy TruthyMatcher.new end |
#eq(expected) ⇒ Object
29 30 31 |
# File 'lib/polyrun/quick/matchers.rb', line 29 def eq(expected) EqMatcher.new(expected) end |
#expect(actual) ⇒ Object
25 26 27 |
# File 'lib/polyrun/quick/matchers.rb', line 25 def expect(actual) Expectation.new(actual) end |
#include(*expected) ⇒ Object
41 42 43 |
# File 'lib/polyrun/quick/matchers.rb', line 41 def include(*expected) IncludeMatcher.new(expected) end |
#match(pattern) ⇒ Object
45 46 47 |
# File 'lib/polyrun/quick/matchers.rb', line 45 def match(pattern) RegexMatcher.new(pattern) end |