Skip to content

Commit

Permalink
Reset ENV after each spec
Browse files Browse the repository at this point in the history
  - In certain test run orders, ENV['RESQUTILS_SECONDS_TO_BE_CONSIDERED_STALE']
    was left in an unexpected state with a value like 0, and this value
    would cause subsequent tests to fail.
  - #6 (comment)
  • Loading branch information
Simeon Willbanks committed Nov 12, 2015
1 parent 8c45ab6 commit 6709a6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/stale_workers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
]
}

before do
after do
ENV.delete("RESQUTILS_SECONDS_TO_BE_CONSIDERED_STALE")
end

before do
allow(Resque).to receive(:workers).and_return(workers)
end

Expand Down

1 comment on commit 6709a6c

@davetron5000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, nice. 👍 🚢

Please sign in to comment.