Skip to content

Instantly share code, notes, and snippets.

@csexton
Forked from tpope/env.rb
Created September 12, 2009 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csexton/185717 to your computer and use it in GitHub Desktop.
Save csexton/185717 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