guard / guard-rspec

Guard::RSpec automatically run your specs (much like autotest)
https://rubygems.org/gems/guard-rspec
MIT License
1.31k stars 241 forks source link

Fix already initialized constant for TEMPORARY_FILE_PATH #394

Closed enriikke closed 4 years ago

enriikke commented 7 years ago

Running Guard RSpec with a bundle exec rspec command throws the warning already initialized constant Guard::RSpecDefaults::TEMPORARY_FILE_PATH. This commit simply checks whether or not TEMPORARY_FILE_PATH is already initialized and only assigns a value to it if it's not.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 98.236% when pulling 22bd6bae1190459df41b929dd6186b8e2bb0756a on enriikke:bug-TEMPORARY_FILE_PATH-redeclared into 1cf25c7127112c246b6e1a38208c32a6aee8a6c7 on guard:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 98.236% when pulling 22bd6bae1190459df41b929dd6186b8e2bb0756a on enriikke:bug-TEMPORARY_FILE_PATH-redeclared into 1cf25c7127112c246b6e1a38208c32a6aee8a6c7 on guard:master.

enriikke commented 7 years ago

I'm not sure what the error with Hound is, but I'll be happy to fix anything on my PR that might be causing the problem 😃