Sha256: e644f47f0d9e4748ae2c97ee5a1507039eb2bba9a528a4bdb0ea837b3722465f

Contents?: true

Size: 633 Bytes

Versions: 21

Compression:

Stored size: 633 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "Amixer" do
  it "should load by using autoload" do
    require "knjrbfw"
    require "knj/autoload"
    
    $amixer = Knj::Amixer.new
  end
  
  it "should register various devices" do
    $devices = $amixer.devices
  end
  
  it "should register various mixers and do various operations on them" do
    $devices.each do |name, device|
      mixers = device.mixers
      
      if device.active?(:stream => "PLAYBACK")
        mixers.each do |name, mixer|
          next if !mixer.volume?
          mixer.vol_add -5
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
knjrbfw-0.0.8 spec/amixer_spec.rb