search for: articletest

Displaying 2 results from an estimated 2 matches for "articletest".

Did you mean: article_test
2010 Dec 22
8
Shoulda issue: no more "should have_instance_methods" ?
...came across issues. For one I realized I had to get rid of the _ between the "should" and "have" in past cases, but here, I get this error when I run my unit test: ./test/test_helper.rb:28:in `should_act_as_list'': undefined method `have_instance_methods'' for ArticleTest:Class (NoMethodError) What''s the Rails 3 way to test acts_as_list with Shoulda? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@publ...
2010 Dec 23
6
Difference between rake test:units and individually running ruby -I test test/unit/something_test.rb ?
Here''s my issue: running ruby -I test test/unit/something_test.rb for each of my unit tests works perfectly. However, running rake test:units brings errors in all of them - some object becomes nil for some reason. Why might this be happening? Specifics: the object that is successfully not nil when I run the unit tests one-by-one but becomes nil when I do rake test:units is defined like