Class: MiniTest::Test

Inherits:
Object show all
Defined in:
lib/minitest/should_just_work.rb

Instance Method Summary collapse

Instance Method Details

#before_setup(*a, &block) ⇒ Object



160
161
162
163
# File 'lib/minitest/should_just_work.rb', line 160

def before_setup(*a, &block)
  MiniTest::ShouldJustWork::Should.init self
  mts_before_setup(*a, &block)
end

#msg(string = nil) ⇒ Object



165
166
167
168
# File 'lib/minitest/should_just_work.rb', line 165

def msg(string=nil)
  self.msg = string if string
  @msg
end

#msg=(string) ⇒ Object



170
171
172
# File 'lib/minitest/should_just_work.rb', line 170

def msg=(string)
  @msg = string
end

#mts_before_setupObject



158
# File 'lib/minitest/should_just_work.rb', line 158

alias mts_before_setup before_setup

#otherwise(message) ⇒ Object



174
175
176
# File 'lib/minitest/should_just_work.rb', line 174

def otherwise(message)
  msg message
end