Displaying 20 results from an estimated 11000 matches similar to: "should send_email always succeeds?"
2009 Aug 10
2
testing exception notification plugin with rspec
Hi,
I''m trying to install exception notification plugin and test it with
rspec.
The problem that I have is that when running the server in production
mode : at the end of the log i get this when I have a critical error
rendering section "request"
rendering section "session"
rendering section "environment"
rendering section "backtrace"
Sent mail to
2007 Feb 04
10
Spec''ing ActionMailer
Good morning (Pacific Time). I have a controller action that, as a
side-effect, sends an email to an administrator. I want it to do
something like this:
specify "when someone successfully signs up, an email should be sent
to the administrator with the person''s contact page" do
post :signup, {...lots o'' params}
response should_be success
#
2009 Apr 09
1
Mailing error in Rails 2.3.2
Hi,
My mails were working with the earlier version of rails ie. Rails
2.0.2. But recently when i upgraded my environment to 2.3.2 the mails
stopped working and gave
"Error: End of file reached".
But if i send mails independent of my rails app the mailing code works
fine.
My Environment:
Windows Xp
Ruby 1.8.7
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource
2005 Dec 24
10
can''t find view from Mailer?
Hi everyone,
Like so many other here, I too am new to Rails (and Ruby), and so far
it''s been a great experience. I haven''t been able to get around one
problem though. When trying to use the mailer, I recieve an error like
this:
ActionView::ActionViewError in Tell_friend#send_email
No rhtml, rxml, or delegate template found for send_to_friend
The scenario is this:
A form on
2005 Dec 17
13
Rookie with ActionMailer
To start out I''ll say that this is the first thing that I''ve ever built
that''s been intended to programmatically send email. I''m looking at
examples in AWR and also on the wiki. I feel that I sort of have things
set up right but I''m getting an error I can''t grok:
Net::SMTPFatalError in Home#email_list
550 5.7.1 Unable to relay for
2006 Jan 23
1
learning how models, controllers, and views pass data
As a noob to Rails and web development in general, I think I still need
a broader understanding of how Views, Controllers, and Models pass
information and variables to each other.
I''m creating a site that allows for email campaigns. I have a
''create_email_controller'':
class Admin::CreateEmailController < Admin::BaseController
layout ''admin''
def
2007 Dec 11
1
501 Syntax: HELO hostname - Mail problem
Hello...
I am encountering a problem sending emails from Windows using an
extermal smtp server.
When attempting to send out the email, the following error is
returned:
501 Syntax: HELO hostname
I have checked the format of the emails, and they are ok. It seems
it''s choking right at the begging of the connection to the smtp
server, when my computer needs to identify itself by sending
2007 Aug 30
8
experimental rails story adapter in trunk
For those of you interested in getting a jump on learning about and
using the new Story Runner in a Rails app, I''ve added an experimental
Rails-Story adapter to trunk.
You can see how to use it here:
http://pastie.caboo.se/92320
This is PURELY EXPERIMENTAL, however it actually works and will likely
not change much in the way that it does work.
Happy hacking!
David
2007 May 15
3
NOOB question RSPEC
Hi all !!
I have this code:
require ''account''
describe Account, "when first created" do
before do
@account = Account.new
end
it "should have a balance of $0" do
@account.balance.should eql(Money.new(0, :dollars))
end
after do
@account = nil
end
end
How can I pass the @account.balance.should eql(Money.new(0, :dollars))
spec. From my
2012 Dec 05
0
Action Mailer 3.2.9 retruns duplicates in deliveries array
I am extracting a standalone batch application from a Rails 3.0.1
project. This requires only ActiveRecord and ActionMailer. In my
testing I set
ActionMailer::Base.delivery_method = :test
This causes the mail to be delivered to the
ActionMailer::Base.deliveries array. However, I am getting two of the
test email messages placed in the deliveries array instead of just one.
For example:
2006 Oct 17
3
action mailer, error Subject: Header must not be multiple
i want to send multiple emails:
#my Controller
def send_email
if params[:group_ids]
groups = Group.find(params[:group_ids]) # creates an array called
''groups'' that looks like : [{:id => 1, :title => ''yediot''}, {:id => 2,
:title => ''maariv''} ] --- [ 1, 2 ]
else
groups = []
end
names = []
emails = []
2007 May 21
9
Ordering in view specs using have_tag and with_tag
When writing view specs is there any way to test not only for the
presence of tags (have_tag) and nested tags (with_tag), but also test
that they appear in a given order?
For example, consider the following:
it ''should display the login names, display names and email
address in alternating rows'' do
response.should have_tag(''div.odd>div'') do
2007 Nov 20
3
How to test views with Nested Resources and Partials
Hi everyone,
I am relatively new to rspec and I am running into a wall in testing my
views. I have a RESTful resource Contracts with a nested resource of
Line_items.
I am trying to figure out how to test the "edit" form of the Line_items.
What complicates this is the nested routing and how to account for it,
and that there is a partial form (_form.haml) that both the edit.haml
and
2007 Oct 01
1
have_tag and line numbers
When I''ve got a view example like this:
1: response.should have_tag "fieldset#children" do
2: with_tag "child"
3: end
If it can''t find ''child'', the error seems to come back as my_spec.rb:1
instead of my_spec.rb:2.
Has anyone else experienced this? I just spent a while tracking down what I
assumed was a problem in my have_tag only to
2013 Mar 23
0
Rails4 and ActionMailer::Base.deliveries
Can someone who is working with Rais 4 verify
if ActionMailer::Base.deliveries returning valid data or an empty set? I''m
looking at the ActiveMailer source code and changelog and nothing jumps out
at me.
This is with the same code and configuration that worked for me in Rails
3.x but now with Rails 4.0.0.beta1 and Ruby 1.9.3p374. delivery_method is
set to :test in both my
2007 May 29
0
specs for ActionMailer
Hi,
Email notifications are an important part of my app and I would like
to spec them. Here''s what I have going so far. It seems to work. I''d
appreciate comments/suggestions.
Rails script/generate mailer produces tests for the email contents
etc. I''ve started by manually converting the generated unit tests to
rspec, and then changing/adding examples as I
2007 Feb 15
1
Has anyone run function tests on ActionMailer?
I am running function tests to see if ActionMailer mails out an email.
I have two development machines, both with rails 1.1.6. On one
machine, the ActionMailer::Base.deliveries array resets itself after
each test. On the other machine, the array keeps accumulating the
emails from the previous function tests and doesn''t clear out the
array after each test.
Both machines have identical
2007 Dec 03
5
spec for model_id should eql
Hello,
I''m confused why the spec described below is failing. Other simple
comparison specs are passing fine for the same model. The code is working
accordingly when I test it through the console, I''m just having difficulty
getting this spec to work. Any pointers would be appreciated.
Failure message:
''Address fetch and geocode should extract department and write to
2008 Mar 17
2
Dynamic actions and views
Hi,
I have a set of messages stored in the db. These are email messages
that I have to send based on some condition. This is not the way I had
been doing all these days. I used to create an action in my controller
(class Notifier < ActionMailer::ARMailer) and then create an rhtml
file with the email content and then say
Notifier::deliver_my_email_message to send out the emails. But now
that I
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
Hi Guys,
Facing a weird error .
Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
It seems to be happening with mail sending mail . I am using AUTHSMTP to
send mails . Unable to send mail and the app breaks .
Any help will be appreciated . Same code worked with ruby 1.8 and rails
2.3.x .
*Configuration*
Rails 3.2
Ruby 1.9
Engineyard , Linux Instance
*Backtrace :*