There is checking wether the user specified a limit: `if criteria[:limit].nil?`. 
There are also [tests for that behaviour](https://github.com/DamirSvrtan/stormpath-sdk-ruby/blob/development/spec/resource/collection_spec.rb#L184). Please look at the tests and tell me if this is the expected behaviour.