0

我的测试失败:

assert_match @post.user_id, @user.id

出现奇怪的错误:

Expected 762146111 to match 762146111.

我尝试在创建和/或匹配步骤中使用 with and w/o Integer()

4

1 回答 1

1

感谢工程师mnky

它应该是:

assert_equal @post.user_id, @user.id
于 2016-09-02T14:52:31.057 回答