search for: test_html_email

Displaying 1 result from an estimated 1 matches for "test_html_email".

2006 Jan 25
2
Testing a model method - private method?
...;</a>" end The method works ok. But when I try to test it: assert_equal ("<a href=''mailto:" + people(:staff1_person).email + "''>" + people(:staff1_person).email + "</a>"), @person.html_email I get a failure: 1) Error: test_html_email(PersonTest): NoMethodError: private method `html_email'' called for #<Person:0x256b460> /Applications/Locomotive/Bundles/rails-1.0.0-max.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1501:in `method_missing'' test/...