class TestBelt::Matchers::Base
Test
Belt provides matchers to test common scenarios. Use these matchers in combination with the 'should' method to run common tests. All matchers should subclass this base class.
Attributes
args[RW]
Public Instance Methods
desc()
click to toggle source
# File lib/test_belt/matchers/base.rb, line 10 def desc raise NotImplementedError, "provide a 'desc' method" end
test()
click to toggle source
# File lib/test_belt/matchers/base.rb, line 14 def test raise NotImplementedError, "provide a 'test' method that returns a Proc that runs the matcher test" end
Protected Instance Methods
using(*args, &block)
click to toggle source
# File lib/test_belt/matchers/base.rb, line 20 def using(*args, &block) self.args = args block end