This came out of the mailer generator w/ Rspec-rails installed :

describe Notifier do
  it "should deliver activation instructions message" do
    @expected.subject = "Activation instructions"
    @expected.to      = "t...@example.org"
    @expected.from    = "f...@example.com"
    @expected.body    = read_fixture("activation_instructions")
  end


Could someone tell me how to modify this spec so that an argument can be sent into Notifier#activation_instructions ?

class Notfier < ActionMailer::Base
    def activation_instructions(user)
        # ... mail :to => ...
    end
end

Thanks,

--
Peter Fitzgibbons
(847) 859-9550
peter.fitzgibb...@gmail.com
IM GTalk: peter.fitzgibbons
IM AOL: peter.fitzgibb...@gmail.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to