Skip to content

Commit

Permalink
Reset $SHELLOPTS after test to avoid side effect flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
infertux committed Jan 12, 2016
1 parent 668471e commit 9fdf1a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/bashcov/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
ENV["SHELLOPTS"] = "posix"
end

after do
ENV["SHELLOPTS"] = nil
end

it "merges the flags" do
runner.run
expect(ENV["SHELLOPTS"]).to eq("posix:xtrace")
Expand Down

0 comments on commit 9fdf1a3

Please sign in to comment.