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.28 spec/amixer_spec.rb
knjrbfw-0.0.27 spec/amixer_spec.rb
knjrbfw-0.0.26 spec/amixer_spec.rb
knjrbfw-0.0.25 spec/amixer_spec.rb
knjrbfw-0.0.24 spec/amixer_spec.rb
knjrbfw-0.0.23 spec/amixer_spec.rb
knjrbfw-0.0.22 spec/amixer_spec.rb
knjrbfw-0.0.21 spec/amixer_spec.rb
knjrbfw-0.0.20 spec/amixer_spec.rb
knjrbfw-0.0.19 spec/amixer_spec.rb
knjrbfw-0.0.18 spec/amixer_spec.rb
knjrbfw-0.0.17 spec/amixer_spec.rb
knjrbfw-0.0.16 spec/amixer_spec.rb
knjrbfw-0.0.15 spec/amixer_spec.rb
knjrbfw-0.0.14 spec/amixer_spec.rb
knjrbfw-0.0.13 spec/amixer_spec.rb
knjrbfw-0.0.12 spec/amixer_spec.rb
knjrbfw-0.0.11 spec/amixer_spec.rb
knjrbfw-0.0.10 spec/amixer_spec.rb
knjrbfw-0.0.9 spec/amixer_spec.rb