spec/courier/template/base_spec.rb in courier-0.1.3 vs spec/courier/template/base_spec.rb in courier-0.1.4
- old
+ new
@@ -9,10 +9,10 @@
context '#get_text' do
it 'should return text with localized tranlation' do
subject.should_receive(:name) { 'template_key' }
subject.
- get_text(:some_option=>123,:service=>double(:name=>'facebook')).should ==
+ get_text(mock_service(:to_s=>'facebook'), :some_option=>123).should ==
'translation missing: en.courier.facebook.template_key'
end
end
# context '#sets_by_owner' do