Merge pull request #3519 from sjackman/svn

Fix a test failure when svn is not installed
This commit is contained in:
Mike McQuaid 2017-12-02 17:22:03 +00:00 committed by GitHub
commit e3a8f815b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,11 @@ describe Utils do
end end
it "returns svn version if svn available" do it "returns svn version if svn available" do
expect(described_class.svn_available?).to be_truthy if File.executable? "/usr/bin/svn"
expect(described_class.svn_available?).to be_truthy
else
expect(described_class.svn_available?).to be_falsey
end
end end
end end