Class: MiniTest::Test
Instance Method Summary collapse
- #before_setup(*a, &block) ⇒ Object
- #msg(string = nil) ⇒ Object
- #msg=(string) ⇒ Object
- #mts_before_setup ⇒ Object
- #otherwise(message) ⇒ Object
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_setup ⇒ Object
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() msg end |