I’m migrating my code to from 1.8.7 and I had before something like
class TestCase < Test::Unit::TestCase
undef_method :default_test
but now I get this error:
undef_method': undefined method
default_test’
any idea how to solve this problem?
I’m migrating my code to from 1.8.7 and I had before something like
class TestCase < Test::Unit::TestCase
undef_method :default_test
but now I get this error:
undef_method': undefined method
default_test’
any idea how to solve this problem?
Test::Unit::TestCase#default_test doesn’t exist in 1.9.*.
http://apidock.com/ruby/Test/Unit/TestCase/default_test
So, no need for your test to undefine it.
Thanks!!
C. Zona wrote in post #1028861:
Test::Unit::TestCase#default_test doesn’t exist in 1.9.*.
default_test (Test::Unit::TestCase) - APIdockSo, no need for your test to undefine it.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs