Skip to content

Commit c7ee25e

Browse files
committed
move host tests into host spec
1 parent f9679d5 commit c7ee25e

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

spec/arduino_ci_spec.rb

-12
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

+8
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)