У меня есть это
Then /^the "([^\"]*)" tag with the id "([^\"]*)" should have the style "([^\"]*)"$/ do |tag,id,style|
if page.respond_to? :should
page.should have_selector(tag, :id => id, :style => style)
else
assert page.has_selector?(tag, :id => id, :style => style)
end
end
И это мой шаг кьюка
And the "div" tag with the id "preview" should have the style "display: block;"
И это ошибка, которую я получаю:
undefined method `has_selector?' for #<Capybara::Session:0x1065b5fc0> (NoMethodError)
Есть идеи?