testunit
Why am I not getting colors with shoulda and test::unit?
I have 2 identical ruby setups. One of them is a VM of ubuntu running inside of windows. The other is a native ubuntu install. On the VM, my Test::Unit output is colored with green, yellow, and red.[详细]
2023-03-10 00:36 分类:问答How do you "nest" or "group" Test::Unit tests?
RSpec has: describe \"the user\" do before(:each) do @user = 开发者_运维知识库Factory :user end it \"should have access\" do[详细]
2023-03-04 20:09 分类:问答Why can't this Test::Unit test preserve the model across `post :create`?
I have 开发者_JAVA百科two models: User and Topic. Users can have many topics and topics belong to one user.[详细]
2023-03-04 14:54 分类:问答Error when using 'omit' feature in Test Unit 2.3.0
I\'m a bit stumped by my issue. I am using ru开发者_开发问答by 1.8.7, rails 2.3.2. I am attempting to using the \'omit\' feature in Test Unit 2.3.0. Here is my test:[详细]
2023-03-02 05:56 分类:问答Rails - How to simply mock current_user (OmniAuth) on Test::Unit?
I am trying to开发者_运维技巧 figure out how can I mock (simply) current_user inside my unit tests in Rails? (I am using Test::Unit). I tried to look on Google and StackOverflow but nothing really hel[详细]
2023-03-01 14:46 分类:问答Test::Unit Rails - How to assert one number is greater than another one?
I am w开发者_如何学Goriting my first unit tests with Test::Unit and I have reached a point where I need to compare two numbers. Much to my surprise, I have discovered that none of the following were a[详细]
2023-03-01 13:17 分类:问答Unable to generate xml results with ci_reporter using Ruby 1.9.2 with Watir
I have installed Watir 1.7.1, Ruby 1.9.2, ci_reporter 1.6.4, test unit 2.2.0. Since testunit donot come with Ruby 1.9.2, I installed the testunit seperately.[详细]
2023-02-20 14:08 分类:问答Installing Test-unit-full On JRuby
I would like to use assertions in my cucumber tests such as this: Then /^I am taken to the page for that item$/ d开发者_StackOverflowo[详细]
2023-02-15 15:33 分类:问答Testing that a method calls super in Ruby
I have a testing library to assist in testing logging: require \'stringio\' module RedirectIo def setup $stderr = @stderr = StringIO.new[详细]
2023-02-15 07:16 分类:问答Why do I get an uninitialized constant Test::Unit::AutoRunner::Priority error?
I am upgrading to Ruby 1.9.2, and getting the following error: /workspace/current/upgrade1.9.2/vendor/rails/activesupport/lib/active_support/dependencies.rb:131:in `rescue in const_missing\': uniniti[详细]
2023-02-15 01:04 分类:问答