aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-08-06 17:18:21 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-12-02 21:48:39 +0100
commit88f24642bd789ac41a86fe34ffe469cf9f0521a3 (patch)
tree0d3ca69c76c018c64a18acde50445db75d982d83 /features
parentSend emails as delayed job (diff)
downloadrecruiting-webapp-88f24642bd789ac41a86fe34ffe469cf9f0521a3.tar.gz
recruiting-webapp-88f24642bd789ac41a86fe34ffe469cf9f0521a3.tar.bz2
recruiting-webapp-88f24642bd789ac41a86fe34ffe469cf9f0521a3.zip
Email answers allow checking signatures
Use Mail gem for receiving emails. Changed fixture email question to require a valid signature. Tests for signatures validation.
Diffstat (limited to 'features')
-rw-r--r--features/step_definitions/email_answer_steps.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/step_definitions/email_answer_steps.rb b/features/step_definitions/email_answer_steps.rb
index 24a2555..05f26ab 100644
--- a/features/step_definitions/email_answer_steps.rb
+++ b/features/step_definitions/email_answer_steps.rb
@@ -39,7 +39,7 @@ When /^I send wrong email announcement$/ do
mail.from = @user.email_address
mail.to = ['gentoo-dev-announce@localhost']
- UserMailer.receive(mail.to_s)
+ Receiver.receive(mail.to_s)
end
When /^I send proper email announcement$/ do
@@ -51,7 +51,7 @@ When /^I send proper email announcement$/ do
mail.to = ['gentoo-dev-announce@localhost', 'gentoo-dev@localhost']
mail.reply_to = 'gentoo-dev@localhost'
- UserMailer.receive(mail.to_s)
+ Receiver.receive(mail.to_s)
end
When /^someone sends forged answer$/ do
@@ -65,7 +65,7 @@ When /^someone sends forged answer$/ do
Given 'user "forger"'
mail.subject = "#{@question.id}-#{@user.token}"
- UserMailer.receive(mail.to_s)
+ Receiver.receive(mail.to_s)
end
Then /^I should see subject for email "([^"]+)" should send to answer "([^"]+)"$/ do |user, question|