I have this
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 This is my cuke step
And the "div" tag with the id "preview" should have the style "display: block;"
And this is the error I get:
undefined method `has_selector?' for #<Capybara::Session:0x1065b5fc0> (NoMethodError)
Any ideas?