spec/volay/widget/volume_control_spec.rb in volay-1.1.0 vs spec/volay/widget/volume_control_spec.rb in volay-1.2.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'spec_helper'
require 'volay/widget/volume_control'
describe 'Volay::Widget::VolumeControl' do
let(:app) do
@@ -16,10 +18,10 @@
it 'on volume scale' do
utils = double
volume = double
allow(volume).to receive(:value=).and_return(20)
allow(app).to receive(:get_object).once.with('volume_adjustement')
- .and_return(volume)
+ .and_return(volume)
allow(app).to receive(:utils).once.and_return(utils)
allow(utils).to receive(:update_status_icon).once.and_return(true)
allow(app.mixer).to receive(:percent).and_return(20)
expect(vc.on_system_tray_window_show).to be_truthy
end