Sha256: 49d4091cc78e5d131882f4394ead9a1ed5db1416d32f80b4769e73915c61441e

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

require 'spec_helper'

describe GuitarProParser::Channel do

  shared_examples 'any Guitar Pro version' do
    context 'port 1, channel 1' do
      subject { song.channels[0][0] }

      its(:instrument) { should == 30 }
      its(:volume) { should == 13 }
      its(:pan) { should == 8 }
      its(:chorus) { should == 0 }
      its(:reverb) { should == 0 }
      its(:phaser) { should == 0 }
      its(:tremolo) { should == 0 }
    end

    context 'port 1, channel 1' do
      subject { song.channels[0][1] }
      its(:instrument) { should == 30 }
    end

    context 'port 1, channel 3' do
      subject { song.channels[0][2] }
      its(:instrument) { should == 25 }
    end

    context 'port 1, channel 10 (drums)' do
      subject { song.channels[0][9] }
      its(:instrument) { should == 0 }
    end
  end

  context 'Guitar Pro 5' do
    subject(:song) { GuitarProParser::Song.new test_tab_path 5 }
    it_behaves_like 'any Guitar Pro version'
  end

  context 'Guitar Pro 4' do
    subject(:song) { GuitarProParser::Song.new test_tab_path 4 }
    it_behaves_like 'any Guitar Pro version'
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guitar_pro_parser-0.0.4 spec/lib/guitar_pro_parser/channel_spec.rb
guitar_pro_parser-0.0.3 spec/lib/guitar_pro_parser/channel_spec.rb
guitar_pro_parser-0.0.2 spec/lib/guitar_pro_parser/channel_spec.rb
guitar_pro_parser-0.0.1 spec/lib/guitar_pro_parser/channel_spec.rb