Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix epic failing tests under Rails 3.1.0.rc5 due to our fake URL help…

…ers in spec_helper.rb needing to now accept arguments, thanks to twalpole, fixes #654
  • Loading branch information...
commit 8b8e86c07788c3657ccb5906722bfff930e08c18 1 parent e03f3c4
@justinfrench authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 spec/spec_helper.rb
View
14 spec/spec_helper.rb
@@ -162,15 +162,15 @@ def mock_everything
# Resource-oriented styles like form_for(@post) will expect a path method for the object,
# so we're defining some here.
- def post_models_path; "/postmodels/1"; end
+ def post_models_path(*args); "/postmodels/1"; end
- def post_path(o); "/posts/1"; end
- def posts_path; "/posts"; end
- def new_post_path; "/posts/new"; end
+ def post_path(*args); "/posts/1"; end
+ def posts_path(*args); "/posts"; end
+ def new_post_path(*args); "/posts/new"; end
- def author_path(o); "/authors/1"; end
- def authors_path; "/authors"; end
- def new_author_path; "/authors/new"; end
+ def author_path(*args); "/authors/1"; end
+ def authors_path(*args); "/authors"; end
+ def new_author_path(*args); "/authors/new"; end
@fred = ::Author.new
@fred.stub!(:class).and_return(::Author)
Please sign in to comment.
Something went wrong with that request. Please try again.