【发布时间】:2010-05-15 01:30:56
【问题描述】:
我正在为 Rails 使用 tabnav 插件,我想使用 rpsec 来确保它正确突出显示。
describe 'account navigation links' do
it 'should have account settings link' do
get '/account/settings'
response.should have_tag("li", :text => "Account Settings")
end
it 'should be highlighted' do
get '/account/settings'
response.should have_tag("li", :color => "Account Settings")
end
end
但是上面的代码似乎不起作用。我正在使用带有 rspec 的 webrat。有什么帮助吗?谢谢。
【问题讨论】:
标签: ruby-on-rails rspec webrat