Permalink
Browse files

Don't generate autotest/discover.rb

  • Loading branch information...
1 parent 6fa688f commit f47e87b39a6f2bc24b71d701c8b509fd6e32acb1 @dchelimsky dchelimsky committed Dec 11, 2010
Showing with 15 additions and 5 deletions.
  1. +4 −0 History.md
  2. +11 −2 Upgrade.markdown
  3. +0 −1 autotest/discover.rb
  4. +0 −2 lib/generators/rspec/install/templates/autotest/discover.rb
View
@@ -4,6 +4,10 @@
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.2.1...master)
+* Changes
+ * Generator no longer generates autotest/autodiscover.rb, as it is no longer
+ needed (as of rspec-core-2.3.0)
+
### 2.2.1 / 2010-12-01
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.2.0...v2.2.1)
View
@@ -1,4 +1,14 @@
-# Upgrade to rspec-rails-2
+# rspec-rails-2.3.0
+
+## autotest integration
+
+Add a .rspec file to the project's root directory (if not already there) to
+tell RSpec to tell Autotest to use RSpec's specialized Autotest class.
+
+NOTE that rspec-core-2.0, 2.1, and 2.2 required an autotest/discover.rb file in
+the project's root directory. This worked with some, but not all versions of
+autotest and/or the autotest command that ships with ZenTest. This new approach
+will work regardless of which version of autotest/ZenTest you are using.
## Webrat and Capybara
@@ -51,4 +61,3 @@ to this:
stub_model(Widget).as_new_record
Generators in 2.0.0 final release will do the latter.
-
View
@@ -1 +0,0 @@
-Autotest.add_discovery { "rspec2" }
@@ -1,2 +0,0 @@
-Autotest.add_discovery { "rails" }
-Autotest.add_discovery { "rspec2" }

0 comments on commit f47e87b

Please sign in to comment.