Class: Lemon::TestClass

Inherits:
TestModule show all
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

Methods inherited from TestModule

#initialize, #to_s

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

#typeObject (private)

The type of testcase.



22
23
24
# File 'lib/lemon/test_class.rb', line 22

def type
  'Class'
end

#validate_settingsObject (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