【问题标题】:Test schema.org ld+json content测试 schema.org ld+json 内容
【发布时间】: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


    【解决方案1】:

    你不能测试那样的东西。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-24
      • 1970-01-01
      • 1970-01-01
      • 2016-03-18
      • 2018-11-13
      • 1970-01-01
      相关资源
      最近更新 更多