这让我困扰了好几天。
test "should check inbox for messages" do
@inbox = create(:inbox)
@user = create(:user)
#user owns inbox
@inbox.user_id = @user.id
@inbox.save
assert_equal @inbox.user_id, @user.id
断言总是失败。
这让我困扰了好几天。
test "should check inbox for messages" do
@inbox = create(:inbox)
@user = create(:user)
#user owns inbox
@inbox.user_id = @user.id
@inbox.save
assert_equal @inbox.user_id, @user.id
断言总是失败。