Skip to content

Commit 788b634

Browse files
committed
Merge pull request timdorr#13 from jswanner/patch-1
Fix remote_start_drive method name
2 parents 3376592 + b4713d9 commit 788b634

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/tesla_api/vehicle.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def sun_roof_move(percent)
116116
api.post("/vehicles/#{id}/command/sun_roof_control", body: {state: "move", percent: percent})["response"]
117117
end
118118

119-
def remove_start_drive(password)
119+
def remote_start_drive(password)
120120
api.post("/vehicles/#{id}/command/remote_start_drive", body: {password: password})["response"]
121121
end
122122

spec/lib/tesla_api/vehicle_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@
231231
end
232232
end
233233

234-
describe "#remove_start_drive", vcr: {cassette_name: "vehicle-remove_start_drive"} do
234+
describe "#remote_start_drive", vcr: {cassette_name: "vehicle-remote_start_drive"} do
235235
it "starts the vehicle's keyless driving mode" do
236-
expect(vehicle.remove_start_drive("elon4eva")["result"]).to eq(true)
236+
expect(vehicle.remote_start_drive("elon4eva")["result"]).to eq(true)
237237
end
238238
end
239239

0 commit comments

Comments
 (0)