Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.dirname(__FILE__) + '/../test_helper'
- class MemberTest < ActiveSupport::TestCase
- fixtures :members
- def test_have_data_from_fixture
- assert_equal(2, Member.count)
- one = members(:one)
- # this prints out
- # #<Member id: 1, username: "frida", hashed_password: "notyetahashedpassword", created_at: "2008-04-04 14:52:20", updated_at: "2008-04-04 14:52:20">
- puts one.inspect
- # but this fails because one.username is nil. Huh???
- assert_equal "frida", one.username
- end
- end
Add Comment
Please, Sign In to add comment