Skip to content

Commit ea815b2

Browse files
committed
move host tests into host spec
1 parent 0cfe00e commit ea815b2

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

spec/arduino_ci_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,3 @@
88
end
99
end
1010
end
11-
12-
RSpec.describe ArduinoCI::Host do
13-
next if skip_ruby_tests
14-
context "which" do
15-
it "can find things with which" do
16-
ruby_path = ArduinoCI::Host.which("ruby")
17-
expect(ruby_path).not_to be nil
18-
expect(ruby_path.include? "ruby").to be true
19-
end
20-
end
21-
22-
end

spec/host_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ def with_tmpdir(path)
5050
end
5151
end
5252

53+
context "which" do
54+
it "can find things with which" do
55+
ruby_path = ArduinoCI::Host.which("ruby")
56+
expect(ruby_path).not_to be nil
57+
expect(ruby_path.include? "ruby").to be true
58+
end
59+
end
60+
5361
end

0 commit comments

Comments
 (0)