spec/edn/transform_spec.rb in edn-1.0.2 vs spec/edn/transform_spec.rb in edn-1.0.3
- old
+ new
@@ -23,9 +23,13 @@
end
it "should not evaluate interpolated Ruby code" do
subject.apply(:string => 'hello\n#{world}').should == "hello\n\#{world}"
end
+
+ it "should emit empty strings as strings" do
+ subject.apply(:string => []).should == ""
+ end
end
context "keyword" do
it "should emit a Ruby symbol" do
subject.apply(:keyword => "test").should == :test