File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
8
8
### Added
9
9
- ` ArduinoInstallation ` class for managing lib / executable paths
10
10
- ` DisplayManager ` class for managing Xvfb instance if needed
11
+ - ` ArduinoCmd ` can report on whether a board is installed
11
12
12
13
### Changed
13
14
- ` DisplayManger.with_display ` doesn't ` disable ` if the display was enabled prior to starting the block
Original file line number Diff line number Diff line change 13
13
expect ( arduino_cmd . installation . cmd_path ) . not_to be nil
14
14
end
15
15
end
16
- end
17
16
17
+ context "board_installed?" do
18
+ arduino_cmd = ArduinoCI ::ArduinoCmd . autolocate!
19
+ ArduinoCI ::DisplayManager ::instance . enable
20
+ it "Finds installed boards" do
21
+ expect ( arduino_cmd . board_installed? "arduino:avr:uno" ) . to be true
22
+ end
23
+
24
+ it "Doesn't find bogus boards" do
25
+ expect ( arduino_cmd . board_installed? "eggs:milk:wheat" ) . to be false
26
+ end
27
+ end
28
+ end
You can’t perform that action at this time.
0 commit comments