Permalink
Browse files

mhs_testing no longer autloads rspec in init.rb, you now have to manu…

…ally add these requires to your spec/spec_helper.rb or stories/helper.rb if you want to use mhs_testing
  • Loading branch information...
1 parent 5bcff91 commit 870907fc1d85de320c4ca0a108610cd62102c1b6 @zdennis zdennis committed Jul 16, 2008
Showing with 9 additions and 10 deletions.
  1. +9 −0 README
  2. +0 −10 init.rb
View
9 README
@@ -4,6 +4,15 @@ 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:
View
10 init.rb
@@ -1,10 +0,0 @@
-if RAILS_ENV == "test"
- config.after_initialize do
- 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(File.dirname(__FILE__), "lib", "selenium", "rails_selenium_story")
- end
-end

0 comments on commit 870907f

Please sign in to comment.