Fix a test failure when svn is not installed
This commit is contained in:
parent
1b28922628
commit
7c6d2c95f6
@ -7,7 +7,11 @@ describe Utils do
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user