diff options
| author | Mike McQuaid | 2017-03-10 16:16:01 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2017-03-10 16:16:01 +0000 | 
| commit | 0e30d34d272cbec3ed6b07eebc4c9fcbb3189317 (patch) | |
| tree | ed8f851416840f6a3a0ccb859820e69c3a92a2f2 /Library/Homebrew/test/cmd/config_spec.rb | |
| parent | 9105acab6bc6a04d01c49a32ec27f8ab16fd40b7 (diff) | |
| download | brew-0e30d34d272cbec3ed6b07eebc4c9fcbb3189317.tar.bz2 | |
test: fix tests with a shallow clone.
In this case `HOMEBREW_VERSION` is `>1.1.0 (no git repository)` so these
tests failed. This was the cause of the Homebrew/homebrew-test-bot
Linux CI failures as it was testing a shallow clone.
Diffstat (limited to 'Library/Homebrew/test/cmd/config_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/cmd/config_spec.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/cmd/config_spec.rb b/Library/Homebrew/test/cmd/config_spec.rb index 7687fcdc7..e28b2f2ae 100644 --- a/Library/Homebrew/test/cmd/config_spec.rb +++ b/Library/Homebrew/test/cmd/config_spec.rb @@ -1,7 +1,7 @@  describe "brew config", :integration_test do    it "prints information about the current Homebrew configuration" do      expect { brew "config" } -      .to output(/HOMEBREW_VERSION: #{HOMEBREW_VERSION}/).to_stdout +      .to output(/HOMEBREW_VERSION: #{Regexp.escape HOMEBREW_VERSION}/).to_stdout        .and not_to_output.to_stderr        .and be_a_success    end  | 
