Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tpope
Created September 2, 2009 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save tpope/179969 to your computer and use it in GitHub Desktop.
Save tpope/179969 to your computer and use it in GitHub Desktop.
# Enable Webrat's Selenium mode if one or more scenarios is tagged @selenium
Webrat.configure do |config|
config.mode = :rails
ObjectSpace.each_object(Cucumber::Ast::Features) do |features|
config.mode = :selenium if features.tag_count('selenium').nonzero?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment