Then /^I directly delete content with name "([^\"]*)" for testing purposes$/ do |content_name| Article.find_by_name(content_name).destroy end Then /^I should be at the url "([^\"]*)"$/ do |url| if response.class.to_s == 'Webrat::SeleniumResponse' URI.parse(response.selenium.get_location).path.should == url else URI.parse(current_url).path.should == url end end Then /^I don't fill anything$/ do end