我在摩卡做了以下测试,产生了“未定义的AssertionError:未定义的==‘Ernest”。我隐约怀疑,测试实际上是在找到测试顶部创建的歌曲实例,我相信这证明了这一点。这是为一个平均堆栈应用程序编写的api,其中猫鼬是ODM。}); });//PUT (save/update) song from the create viewapi.put(&
我正在使用Devise构建用户API函数。这是。api_customers_path POST /customers(.:format) api/v1/customers#create {:format=>:json, :subdomain=>"api"}
api_customer_path GET /customers:format) api/v1/cus