【发布时间】:2016-08-30 13:49:23
【问题描述】:
我有一个这样的数组:
["xxxxxxxxx", 448, "2016-08-29", 1, "Trading", 53, "Trading", 2016-06-03 00:00:00 -0500, 2016-06-03 00:00:00 -0500, "RBS", "USD", "United States Dollar", nil, 2016-10-08 00:00:00 -0500, 2016-09-08 00:00:00 -0500, "2016-09-08 00:00:00 -0500","lcz076", nil, 5, 2016-10-08 00:00:00 -0500, 2016-09-08 00:00:00 -0500, "9", 448, "P", nil]
我只需要为这个值匹配一个值"2016-09-08 00:00:00"
我该怎么做?
【问题讨论】:
-
你只是想检查它是否在里面吗?然后使用
.include?
标签: ruby selenium rspec assert