diff options
author | David Cabo <david@calibea.com> | 2011-08-17 11:05:21 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-08-17 11:05:21 +0200 |
commit | 817ce18d16d037aadc5ea44d93854c6e17f06747 (patch) | |
tree | 1820f4a62c1060063e0b9751473eca9610142598 /spec/lib/i18n_interpolation.rb | |
parent | 0ca78b7c2abfe28ef7acd7137fda5d82a973c2e1 (diff) | |
parent | e1a2e1ad36c6b0c7bfac501eb2a0d0ae5efd05a1 (diff) |
Merge branch 'fixes' into asktheeu
Diffstat (limited to 'spec/lib/i18n_interpolation.rb')
-rw-r--r-- | spec/lib/i18n_interpolation.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/lib/i18n_interpolation.rb b/spec/lib/i18n_interpolation.rb new file mode 100644 index 000000000..8c86413ad --- /dev/null +++ b/spec/lib/i18n_interpolation.rb @@ -0,0 +1,15 @@ +# This is a test of the set_content_type monkey patch in +# lib/tmail_extensions.rb + +require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') + +describe "when using i18n" do + + it "should not complain if we're missing variables from the string" do + result = _('Hello', :dip => 'hummus') + result.should == 'Hello' + result = _('Hello {{dip}}', :dip => 'hummus') + result.should == 'Hello hummus' + end +end + |