Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Rails route helper update for readme #77

Merged
merged 1 commit into from

2 participants

@nruth

In rails 3.1 the url writer has moved, here's an update for the example to get route helpers loaded in the mail spec.

@bmabey
Owner

Nice, thanks!

@bmabey bmabey merged commit 553e728 into bmabey:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 14, 2011
  1. @nruth
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  README.rdoc
View
3  README.rdoc
@@ -113,7 +113,8 @@ Examples for the #signup method in UserMailer:
describe "Signup Email" do
include EmailSpec::Helpers
include EmailSpec::Matchers
- include ActionController::UrlWriter
+ # include ActionController::UrlWriter - old rails
+ include Rails.application.routes.url_helpers
before(:all) do
@email = UserMailer.create_signup("jojo@yahoo.com", "Jojo Binks")
Something went wrong with that request. Please try again.