require ‘test/unit’
class TestMyClass < Test::Unit::TestCase
class << self
def startup
p “startup”
end
def shutdown
p "shutdown"
end
end
def setup
p “Setup”
end
def teardown
p “teardown”
end
def cleanup
p “cleanup”
end
def test_my_method1
p “test1”
end
def test_my_method2
p “test2”
end
end
When i execute the above script I get following output
Started
“Setup”
“test1”
“teardown”
.“Setup”
“test2”
“teardown”
.
Finished in 0.0 seconds.
2 tests, 0 assertions, 0 failures, 0 errors
the startup, shutdown and cleanup is not being called.
7stud – wrote in post #1013742:
What do you get when you run this program:
puts RUBY_VERSION
??
Then read these:
http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/
http://www.devheads.net/development/ruby/talk/startup-shutdown.htm
test-unit | RubyGems.org | your community gem host
http://test-unit.rubyforge.org/test-unit/Test/Unit/TestCase.html
http://test-unit.rubyforge.org/test-unit/index.html
RSpec documentation
OKAY??!
Actually i have installed test-unit 2.3.0 gem. And ruby 1.8.7 the thing
is it is actually taking the older test-unit only.
I verified that using uninstalling the test-unit 2.3.0 and still my
testcase is running.
is there anyway we can specify which gem to use ??
This is what I see in my mail from 7stud
On Fri, Jul 29, 2011 at 8:18 AM, 7stud – [email protected]
wrote:
Then read these:
http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/
http://www.devheads.net/development/ruby/talk/startup-shutdown.htm
–
Posted via http://www.ruby-forum.com/.
This is what Gaurang replied to from 7stud
On Fri, Jul 29, 2011 at 8:34 AM, Gaurang S. [email protected]
wrote:
OKAY??!
I find this incredibly frustrating. I know this isn’t the only issue,
I’ve
previously documented missing messages, and previously created a thread
dedicated to solving issues like this.
What do I need to do to make my ML interface consistent? Who do I need
to
talk to? I assume I’m not the only person having issues like this, can
we
not collectively decide that this needs to be resolved? It has been this
way
for weeks.
Josh C. wrote in post #1013761:
I find this incredibly frustrating. I know this isn’t the only issue,
I’ve
previously documented missing messages, and previously created a thread
dedicated to solving issues like this.
What do I need to do to make my ML interface consistent? Who do I need
to
talk to? I assume I’m not the only person having issues like this, can
we
not collectively decide that this needs to be resolved? It has been this
way
for weeks.
I wonder if it has something to do with editing messages? The website
lets you edit a message, so maybe you are only getting the first copy?
On Fri, Jul 29, 2011 at 8:05 PM, 7stud – [email protected]
wrote:
we
not collectively decide that this needs to be resolved? It has been this
way
for weeks.
I wonder if it has something to do with editing messages? The website
lets you edit a message, so maybe you are only getting the first copy?
What would be the best way to fix this, then? Maybe send an email for
every editing of the message?
Maybe that’s too much. Who do we need to talk to to find a solution?
I agree with Josh, it’s been frustrating to miss messages in the
mailing list lately, and I would love to have it fixed (or fix it
myself if I am able to).
Jesus.
Gaurang S. wrote in post #1013748:
7stud – wrote in post #1013742:
What do you get when you run this program:
puts RUBY_VERSION
??
Then read these:
http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/
http://www.devheads.net/development/ruby/talk/startup-shutdown.htm
test-unit | RubyGems.org | your community gem host
http://test-unit.rubyforge.org/test-unit/Test/Unit/TestCase.html
http://test-unit.rubyforge.org/test-unit/index.html
RSpec documentation
OKAY??!
Actually i have installed test-unit 2.3.0 gem. And ruby 1.8.7 the thing
is it is actually taking the older test-unit only.
I verified that using uninstalling the test-unit 2.3.0 and still my
testcase is running.
is there anyway we can specify which gem to use ??
Okay i got it… i just include the below line and now it’s working.
Thanks for the help.
gem ‘test-unit’
Phillip G. wrote in post #1013798:
2011/7/29 Jess Gabriel y Galn [email protected]:
What would be the best way to fix this, then? Maybe send an email for
every editing of the message?
Don’t allow editing. Problem solved.
In my opinion, there should be unlimited editing–no time limit.
2011/7/29 Jess Gabriel y Galn [email protected]:
What would be the best way to fix this, then? Maybe send an email for
every editing of the message?
Don’t allow editing. Problem solved.
–
Phillip G.
phgaw.posterous.com | twitter.com/phgaw | gplus.to/phgaw
A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
– Leibniz