testunit
Is there an built-in UI support in the Ruby unit test framework?
Is there an built-in UI s开发者_Go百科upport in the Ruby unit test framework? Can I show the results of my unit test in the UI?In ruby 1.8, test/unit apparently had support for a couple of different r[详细]
2023-01-09 14:59 分类:问答Why is this instance variable nil when accessed in a different unit test?
require \'rubygems\' require \'test/unit\' class Thing attr_accessor :foo def set_stuff @foo = \'bar\' end end[详细]
2023-01-08 00:32 分类:问答Ruby unit test :run a test class from the main class
In Ruby unit testing can I run a test class from another class for 开发者_如何学JAVAexa class Foo < Test::Unit:: TestCase[详细]
2023-01-07 15:08 分类:问答What type should the argument be for the run method in testcase.rb?
For the run(result) method in test/unit/testcase.rb, what attribute type should my res开发者_开发问答ult be? It will store the result from the error and assertions from the TestCase class. I don\'t kn[详细]
2023-01-06 19:27 分类:问答Clearance with Test::Unit
I am using Clearance for authentication with 开发者_C百科my rails app which works.But now all my unit tests fail because they redirect to the sign in page, which makes sense.Clearance seems to have he[详细]
2023-01-02 20:04 分类:问答How to unit test for exception in threads
I need to unit test that an exception in raised in code like: 开发者_如何学Cdef test assert_raise Timeout::Error do[详细]
2022-12-29 03:05 分类:问答How do I inherit abstract unit tests in Ruby?
I have two unit tests that should share a lot of common tests with slightly different setup methods.If I write something like[详细]
2022-12-25 04:18 分类:问答Can rails test speed be increased?
I\'m a recent convert to TDD but as my codebase grows i开发者_Python百科n size and complexity, I find myself waiting longer and longer periods for the framework to load every time I want to run a test[详细]
2022-12-24 12:27 分类:问答Testing routes with host constraints via assert_routing in Rails
I have a route which I\'m using constraints to check the host and then a route which is essentially the same but without the host restriction (these are really namespaces but to make things simple thi[详细]
2022-12-22 04:09 分类:问答Getting access to assertion methods from a Shoulda should method
I have a shoulda macro/method that tests controller responses for XPath conditions like so: def self.should_have_xpath(path, &block)[详细]
2022-12-20 07:16 分类:问答