Class: Bogus::MiniTestSyntax

Inherits:
Object
  • Object
show all
Extended by:
Takes, Forwardable
Defined in:
lib/bogus/minitest/syntax.rb

Instance Method Summary collapse

Methods included from Takes

takes

Instance Method Details

#after_suite(&block) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/bogus/minitest/syntax.rb', line 18

def after_suite(&block)
  # minitest 5 vs 4.7
  if defined? Minitest.after_run
    Minitest.after_run(&block)
  else
    MiniTest::Unit.after_tests(&block)
  end
end

#described_classObject



10
11
12
# File 'lib/bogus/minitest/syntax.rb', line 10

def described_class
  return context.desc if context.desc.is_a?(Module)
end

#described_class=(value) ⇒ Object



14
15
16
# File 'lib/bogus/minitest/syntax.rb', line 14

def described_class=(value)
  context.instance_variable_set('@desc', value)
end