Class: Lemon::TestClass
- Inherits:
-
TestModule
- Object
- TestCase
- TestModule
- Lemon::TestClass
- Defined in:
- lib/lemon/test_class.rb
Overview
Subclass of TestModule used for classes. It’s basically the same class.
Defined Under Namespace
Classes: DSL
Instance Attribute Summary
Attributes inherited from TestCase
#advice, #context, #label, #setup, #skip, #target, #tests
Instance Method Summary collapse
-
#type ⇒ Object
private
The type of testcase.
-
#validate_settings ⇒ Object
private
Make sure the target is a class.
Methods inherited from TestModule
Methods inherited from TestCase
#domain, #domain_class, #each, #evaluate, #initialize, #run, #scope, #size, #skip!, #skip?, #tags, #to_s
Constructor Details
This class inherits a constructor from Lemon::TestModule
Instance Method Details
#type ⇒ Object (private)
The type of testcase.
22 23 24 |
# File 'lib/lemon/test_class.rb', line 22 def type 'Class' end |
#validate_settings ⇒ Object (private)
Make sure the target is a class.
15 16 17 |
# File 'lib/lemon/test_class.rb', line 15 def validate_settings raise "#{@target} is not a module" unless Class === @target end |