search for: person_test

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

2006 Jan 25
2
Testing a model method - private method?
...onTest): 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/unit/person_test.rb:32:in `test_html_email'' The method works without errors (that I can see) when using it in a view. Why not in a test? Thanks, Sean
2006 Apr 05
0
Tests creating output?
...password = ''{SHA}blahblahblah='' new_password = people(:staff1_person).hashed_password(''password'') assert_equal new_password, new_hashed_password end When I run the test, it passes, but it outputs the hash somewhere in hashed_password: $ ruby test/unit/person_test.rb Loaded suite test/unit/person_test Started blahblahblah= ... Finished in 0.340915 seconds. 3 tests, 20 assertions, 0 failures, 0 errors $ Why is that happening? Thanks, Sean