This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Apr 21 17:45:58 -0700 2008 | |
| |
MIT-LICENSE | Thu Jan 31 09:58:06 -0800 2008 | |
| |
README | ||
| |
README.Selenium | ||
| |
README.examples | ||
| |
Rakefile | ||
| |
TODO | ||
| |
doc/ | ||
| |
examples/ | ||
| |
init.rb | ||
| |
install.rb | Wed Jan 30 14:34:43 -0800 2008 | |
| |
lib/ | ||
| |
spec/ | ||
| |
tasks/ | Mon Apr 21 17:45:58 -0700 2008 | |
| |
uninstall.rb |
README
MhsTesting
==========
This plugin is a compilation of testing helpers that we use at Mutually Human Software. Documentation
may be sparse.
MhsTesting used to have the following in the init.rb file, but now you have to place this manually in your
spec/spec_helper.rb and stories/helper.rb if you wish to have MhsTesting available:
require 'spec'
require 'spec/rails'
require File.join(RAILS_ROOT, *%w[vendor plugins mhs_testing lib selenium example_group])
require 'spec/rails/story_adapter'
require 'mhs_testing'
require File.join(RAILS_ROOT, *%w[vendor plugins mhs_testing lib selenium rails_selenium_story])
If you wish to use the selenium test helpers please see README.Selenium.
First, in config/environment.rb find this line:
require File.join(File.dirname(__FILE__), 'boot')
and put this line after it:
require File.join(RAILS_ROOT, %w[vendor plugins mhs_testing lib selenium at_exit])
Secondly, put this in spec_helper.rb:
require File.join(RAILS_ROOT, *%w[vendor plugins mhs_testing lib selenium example_group])
Thirdly, make a config/selenium/ directory and put osx.rb file in there with the below contents:
Selenium::configure do |config|
config.browser 'firefox'
# config.browser 'safari'
# config.browser 'iexplore'
# config.close_browser_at_exit = true
config.stop_selenium_server = false
config.stop_test_server = false
end
Lastly, put spec files in spec/selenium/ directory and then all of your describes will automatically run in "selenium"
test mode.
Examples
=======
See README.examples
Copyright (c) 2007 Mutually Human Software, released under the MIT license








