【发布时间】:2015-12-26 11:10:22
【问题描述】:
我有以下内容的视图:
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Organization",
"url" : "<%= company.url %>",
"contactPoint" : [{
"@type" : "ContactPoint",
"telephone" : "<%= company.phone_number %>",
"contactType" : "customer service"
}]
}
</script>
我陷入了 TDD 工作流程。测试此类内容的最佳方法是什么?
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-4 rspec tdd