testunit
How can you perform functional tests on JavaScript responses?
I noticed that it is quite common in Rails to render back text for js requests with the text embedded within a jquery method call开发者_Python百科 to insert it into the DOM.[详细]
2023-02-07 15:04 分类:问答Ruby: how do I use assert_nothing_raised?
assert_nothing_raised do @board.make_move(0,0,Board::HUMAN) end and the docs say: Passes if block does not throw anything.[详细]
2023-02-07 07:27 分类:问答Setting up Shoulda under Test/Unit in Rails 3 (3.0.3)
I have posted this in other places but no response. Trying to get Shoulda working inside Test/Unit in Rails 3.0.3 (1.9.2). When I try to run the test (copied below), I get this error:[详细]
2023-01-31 04:19 分类:问答How do I tell autotest to run my tests instead of my specs?
I have a rails 3 project with both specs and tests. If I fire up autotest it runs my specs. How can I make it r开发者_C百科un my tests instead? autotest -h is no help here.Try this on the command line[详细]
2023-01-29 04:01 分类:问答Introspection during Rails Test Execution -- How?
I am generating some output files during the execution of rails tests, and I would like to be able to name the files based o开发者_C百科n the current test class and current test method.Is there a way[详细]
2023-01-29 02:28 分类:问答How do I run a Test::Unit suite to completion with a tally of tests/failures?
I\'ve inherited a large suite of Test::Unit tests, and one of my first tasks is to have the suite run to completion rather than exit after the first test failu开发者_C百科re.[详细]
2023-01-25 19:13 分类:问答Rails colour highlighting for the Test::Unit/rake command?
When running test/unit using the rake test command from the terminal within a rails 3 project directory, the test result output is not coloured. Hence, it cannot be interpreted at a glance.[详细]
2023-01-21 01:33 分类:问答Why am I getting a NoMethodError when I use Mocha 0.9.8 with Test::Unit 2.1.1
Has anyone seen this? Here\'s the error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -rrubygems -e \"require \'redgreen\'\"-I.:lib:test -rubygems -e \"[\'test/unit\', \'test/t[详细]
2023-01-14 12:51 分类:问答Generating many almost identical ruby unit tests
I have a number of ruby files (a.rb, b.rb, c.rb) which define very similar classes. (They should test the same)[详细]
2023-01-13 11:02 分类:问答Why am I getting "Test is not a class" in this Ruby script?
I\'ve got a problem with this cl开发者_如何学Pythonass require \"test/unit\" require \"selenium/client\"[详细]
2023-01-11 08:56 分类:问答