Module: Filet

Extended by:
Hooks, Integration
Defined in:
lib/filet.rb,
lib/filet/hooks.rb,
lib/filet/version.rb,
lib/filet/test_case.rb,
lib/filet/integration.rb

Defined Under Namespace

Modules: Backport, Hooks, Integration Classes: TestCase

Constant Summary collapse

VERSION =
"0.2.2"

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Hooks

context_hook, context_hook=, extended, feature_hook, feature_hook=

Methods included from Integration

base_klass, base_klass=

Class Method Details

.included(base) ⇒ Object



6
7
8
# File 'lib/filet.rb', line 6

def self.included(base)
  require "filet/test_case"
end

Instance Method Details

#feature(name, description = nil, options = {}, &block) ⇒ Object



42
43
44
45
46
47
48
# File 'lib/filet/test_case.rb', line 42

def feature(name, description=nil, options = {}, &block)
  klass = create_class(name, Filet::TestCase, &block)
  klass.description = description

  Filet.feature_hook.call(klass, options) if Filet.feature_hook
  klass
end