Skip to content

Commit

Permalink
added email_spec dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sbounmy committed Mar 30, 2013
1 parent 210d527 commit e53e650
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions spec/mailers/order_mailer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
require 'spec_helper'

require 'email_spec'
module Spree

describe OrderMailer do
include EmailSpec::Helpers
include EmailSpec::Matchers

let(:order) { FactoryGirl.create(:order, :locale => :fr) }
let(:mail) { ActionMailer::Base.deliveries.last }

it "should use i18n email template" do
OrderMailer.confirm_email(order, true).deliver
mail.encoded.should include("Merci")
mail = OrderMailer.confirm_email(order, true)
mail.body.should include("Merci")
end
end
end
1 change: 1 addition & 0 deletions spree_multi_lingual.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'launchy', '2.0.5'
s.add_development_dependency 'awesome_print'
s.add_development_dependency 'deface', '~> 1.0.0.rc2'
s.add_development_dependency 'email_spec', '~> 1.2.1'
# Seems Spree doesn't require it correctly or there is a problem with extensions maybe? Still, it is needed to work with the dummy app!
s.add_development_dependency 'sass-rails'
end

0 comments on commit e53e650

Please sign in to comment.