diff --git a/spec/dotenv/parser_spec.rb b/spec/dotenv/parser_spec.rb index 9b43b94d..b1b8f80d 100644 --- a/spec/dotenv/parser_spec.rb +++ b/spec/dotenv/parser_spec.rb @@ -151,6 +151,10 @@ def env(string) expect(env("# HELLO=world\n")).to eql({}) end + it "ignores comment" do + expect(env("# Uncomment to activate:\n")).to eql({}) + end + it "parses # in quoted values" do expect(env('foo="ba#r"')).to eql("foo" => "ba#r") expect(env("foo='ba#r'")).to eql("foo" => "ba#r")