首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

rspec2 惯用代码

2012-11-03 
rspec2 常用代码测view tagassert_select a[href*/users/id/lock], :text 禁用, :count 0asser

rspec2 常用代码
测view tag

assert_select "a[href*=/users/id/lock]", :text => "禁用", :count => 0assert_select "a[href*=/users/id/unlock]", '启用'assert_select "a[href*=/users/id/unlock]", :text => "启用", :count => 1

热点排行