Skip to content

Commit

Permalink
change check for ENV COVERAGE to check value
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Jun 9, 2017
1 parent 1639ddf commit 290ce57
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Starts SimpleCov for code coverage.

if ENV["COVERAGE"]
if ENV["COVERAGE"] == "true"
require "simplecov"

# Using a command name prevents results from getting clobbered by other test suites
Expand Down
2 changes: 1 addition & 1 deletion lib/react_on_rails/git_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ReactOnRails
module GitUtils
def self.uncommitted_changes?(message_handler)
return false if ENV["COVERAGE"]
return false if ENV["COVERAGE"] == "true"
status = `git status --porcelain`
return false if status.empty?
error = "You have uncommitted code. Please commit or stash your changes before continuing"
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/spec/simplecov_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Starts SimpleCov for code coverage.

if ENV["COVERAGE"]
if ENV["COVERAGE"] == "true"
require "simplecov"

# Using a command name along with the test_env_number prevents results from
Expand Down
2 changes: 1 addition & 1 deletion spec/react_on_rails/simplecov_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Starts SimpleCov for code coverage.

if ENV["COVERAGE"]
if ENV["COVERAGE"] == "true"
require "simplecov"
# Using a command name prevents results from getting clobbered by other test
# suites
Expand Down

0 comments on commit 290ce57

Please sign in to comment.