spec/spotify_spec.rb in spotify-10.1.1 vs spec/spotify_spec.rb in spotify-10.2.0
- old
+ new
@@ -83,9 +83,20 @@
subject[:syncing].must_equal false
subject[:syncing] = true
subject[:syncing].must_equal true
end
end
+
+ describe "audio sample types" do
+ # this is so we can just read audio frames easily based on the sample type
+ Spotify.enum_type(:sampletype).symbols.each do |type|
+ describe type do
+ it "should have a corresponding FFI::Pointer#read_array_of_#{type}" do
+ FFI::Pointer.new(1).must_respond_to "read_array_of_#{type}"
+ end
+ end
+ end
+ end
end
describe "functions" do
API_H_XML.functions.each do |func|
next unless func["name"] =~ /\Asp_/