awtrix_control 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awtrix_control/app.rb +1 -1
- data/lib/spec/awtrix_control/app_spec.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f59a3970d81d3f00c641368d92eeaa3ae598b13984a70ca20b06cf9f02a16a74
|
4
|
+
data.tar.gz: 4849bc5eecbe35b435c68c385dbbb6c8a505e07927b9d88bebd442534713f719
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa0a5183b88149293c71067fc8d80c99c7587a20b0eede0bb9ec3a23a335d176b4847fd2d6455647e333a026630808f3b802479bab093897b26b73d1ef642fae
|
7
|
+
data.tar.gz: 1951fe11cec065b068484cba3adc87d66add888f380446b9115b7b319d86375621a989ed385898c85de6371681e6b3b8d81a88cb1335197a1ac2cae91f73330c
|
data/lib/awtrix_control/app.rb
CHANGED
@@ -136,7 +136,6 @@ describe AwtrixControl::App do
|
|
136
136
|
expect(device2.apps[:test_app]).to eq(@app)
|
137
137
|
end
|
138
138
|
|
139
|
-
|
140
139
|
end
|
141
140
|
|
142
141
|
describe '#disable_scroll=' do
|
@@ -341,6 +340,14 @@ describe AwtrixControl::App do
|
|
341
340
|
end
|
342
341
|
end
|
343
342
|
|
343
|
+
describe '#push' do
|
344
|
+
it 'pushes the app to the device' do
|
345
|
+
@app.device = @device
|
346
|
+
expect(@device).to receive(:push_app).with(:test_app)
|
347
|
+
@app.push
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
344
351
|
describe '#push_icon=' do
|
345
352
|
it 'sets the push icon' do
|
346
353
|
@app.push_icon = :scroll_once
|