File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ def force_install_location
28
28
def autolocate
29
29
ret = new
30
30
31
- osx_place = "/Applications/Arduino.app/Contents/MacOS/Arduino "
31
+ osx_place = "/Applications/Arduino.app/Contents/MacOS"
32
32
if File . exist? osx_place
33
- ret . cmd_path = File . join ( osx_place , "arduino " )
33
+ ret . cmd_path = File . join ( osx_place , "Arduino " )
34
34
ret . lib_dir = File . join ( osx_place , "Libraries" )
35
35
return ret
36
36
end
Original file line number Diff line number Diff line change 1
1
require "spec_helper"
2
2
3
3
RSpec . describe ArduinoCI ::ArduinoCmd do
4
- it "Finds the Arduino executable" do
5
- arduino_cmd = ArduinoCI ::ArduinoCmd . autolocate
6
- # expect(arduino_cmd.path).not_to be nil
4
+ context "autolocate" do
5
+ it "Finds the Arduino executable" do
6
+ arduino_cmd = ArduinoCI ::ArduinoCmd . autolocate
7
+ end
8
+ end
9
+
10
+ context "autolocate!" do
11
+ it "Finds the Arduino executable" do
12
+ arduino_cmd = ArduinoCI ::ArduinoCmd . autolocate!
13
+ expect ( arduino_cmd . installation . cmd_path ) . not_to be nil
14
+ end
7
15
end
8
16
end
9
17
You can’t perform that action at this time.
0 commit comments