blob: 6b745059ca3189ca52d0e9fb8762b467f9975706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|