testunit
Ruby assertions and disabled inputs
Does anyone know how to assert 开发者_开发问答that a checkbox or input is disabled?I can\'t find anything to indicated that this is supported[详细]
2022-12-15 22:19 分类:问答How to include unit tests in a ruby module?
I\'m trying to include the unit tests for a module in the same source file as the module itself, following the Perl mod开发者_运维知识库ulino model.[详细]
2022-12-13 03:08 分类:问答How to get name of the test program along with dots while running ruby test
When I run my tests using rake I see dots as the tests are progressing. What I want is the name of the test program before the dots. I am getting some warnings but am not sure which t开发者_运维技巧es[详细]
2022-12-12 20:27 分类:问答how do you assert an exception from another ruby module is thrown? (using assert_throws)
I\'m trying to write code like this: assert_throws(:ExtractionFailed) { unit.extract_from(\'5 x 2005\')}[详细]
2022-12-12 15:23 分类:问答Test modules with Test::Unit
I encountered a problem when trying to test a module with Test::Unit. What I used to do is this: my_module.rb:[详细]
2022-12-11 16:13 分类:问答Global setup and teardown blocks in Test::Unit
What\'s the best way to hav开发者_开发百科e a setup run before every method in an entire test suite (not just one test class)?[详细]
2022-12-11 06:07 分类:问答