Sha256: 9b4f6faf8f6d7fd1292f10374c196b40e15531a46e87f81d50d2b0dadcf9c61e
Contents?: true
Size: 894 Bytes
Versions: 2
Compression:
Stored size: 894 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') include Nerpin describe Util do describe '.parse_spec_for_micron' do before do @url = 'http://ion-micron-miniak.wikia.com/wiki/Common_FAQ' stub_request(:get, @url). to_return(:body => open(File.expand_path(File.dirname(__FILE__) + '/../micron.html')).read) end it 'parses the spec for NRPN' do parsed = Util.parse_spec_for_micron parsed.should be_an_instance_of(Hash) parsed.size.should eql(234) parsed[:oscillator_1_pitch].should eql( :id => 15, :min => -999, :max => 999 ) parsed[:lfo_1_rate_follow_tempo].should eql( :id => 159, :min => 0, :max => 24 ) parsed[:tracking_point_minus1].should eql( :id => 136, :min => -100, :max => 100 ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nerpin-0.0.2 | spec/nerpin/util_spec.rb |
nerpin-0.0.1 | spec/nerpin/util_spec.rb |