Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rails route helper update for readme #77

Merged
merged 1 commit into from

2 participants

Nicholas Rutherford Ben Mabey
Nicholas Rutherford

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.

Ben Mabey
Owner

Nice, thanks!

Ben Mabey bmabey merged commit 553e728 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 14, 2011
  1. Nicholas Rutherford
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  README.rdoc
3  README.rdoc
View
@@ -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.