Fix specs, need to add new for HTML

This commit is contained in:
Steve Pettitt
2016-05-10 23:11:14 +01:00
parent 6ecf896fa2
commit d5a7e907a3
2 changed files with 10 additions and 11 deletions

View File

@@ -53,10 +53,10 @@
#{@tax_total}
%p
= t :producer_mail_text_after
%em
%p
#{@coordinator.name}
%p
#{@coordinator.address.address1}, #{@coordinator.address.city}, #{@coordinator.address.zipcode}
#{@coordinator.phone}
#{@coordinator.email}
%em
%p
#{@coordinator.name}
%p
#{@coordinator.address.address1}, #{@coordinator.address.city}, #{@coordinator.address.zipcode}
#{@coordinator.phone}
#{@coordinator.email}

View File

@@ -44,7 +44,7 @@ describe ProducerMailer do
end
it "includes receival instructions" do
mail.body.should include 'Outside shed.'
mail.body.encoded.should include 'Outside shed.'
end
it "cc's the enterprise" do
@@ -59,12 +59,11 @@ describe ProducerMailer do
end
it "does not include incomplete orders" do
mail.body.should_not include p3.name
mail.body.encoded.should_not include p3.name
end
it "includes the total" do
puts mail.body.encoded
mail.body.should include 'Total: $20.00'
mail.body.encoded.should include 'Total: $20.00'
end
it "sends no mail when the producer has no orders" do