Displaying 2 results from an estimated 2 matches for "should_act_as_list".
2010 Dec 22
8
Shoulda issue: no more "should have_instance_methods" ?
...4/should-act-as-list.html....
into my test_helper file so I can test acts_as_list, I 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 thi...
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