Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmagic committed Apr 23, 2018
1 parent 453a6e4 commit b023c9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/dotenv/parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ def env(string)
expect(env("\n\n\n # HERE GOES FOO \nfoo=bar")).to eql("foo" => "bar")
end

it "ignores commented out variables" do
expect(env("# HELLO=world\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")
Expand Down

0 comments on commit b023c9b

Please sign in to comment.