spec/lib/babelyoda/strings_spec.rb in babelyoda-2.1.11 vs spec/lib/babelyoda/strings_spec.rb in babelyoda-2.1.12
- old
+ new
@@ -4,14 +4,15 @@
it "can be created with a filename and language" do
strings = Babelyoda::Strings.new('Combined.strings', :en)
end
context "when empty" do
- it "serializes to an IO object" do
+ it "serializes a comment to an IO object" do
strings = Babelyoda::Strings.new('Combined.strings', :en)
io = StringIO.new
strings.to_strings(io, :en)
- io.read.should == ''
+ io.rewind
+ io.read.should == "/* No strings yet. */\n"
end
end
context "when has only non-plural keys" do
it "merges keys in" do