Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 3d29af1

Browse files
committed
Improved travis compatibility
1 parent 4a314d6 commit 3d29af1

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
language: ruby
22
rvm:
33
- 2.0.0
4+
bundler_args: --without development
5+
env:
6+
- TRAVIS_CI=true

spec/lib/buff/setup_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
context "pathname" do
99
it "sets the default path" do
1010
expect(setup.path).to eq("~/.bufferapprc")
11-
end
11+
end unless travis?
1212
end
1313
context "verifies whether rc file exists" do
1414
it "fails with error when specified file not found" do
@@ -17,7 +17,7 @@
1717
end
1818
it "documents when rc file is present" do
1919
expect(setup.exists?).to eq(true)
20-
end
20+
end unless travis?
2121
end
2222
context "determines if rc file is the most current version" do
2323
it "checks current RC_VERSION" do

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
require 'coveralls'
77
Coveralls.wear!
88

9+
def travis?
10+
ENV['TRAVIS_CI']
11+
end
12+
913
def fixture_path
1014
File.expand_path(File.join("..", "fixtures"), __FILE__)
1115
end

0 commit comments

Comments
 (0)