Sha256: 14dd57ac4a7a161af7a3bfaf659e60bdf96aa458231c31c4b96bcf0355cb2b47
Contents?: true
Size: 342 Bytes
Versions: 4
Compression:
Stored size: 342 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SPNet::NoLimiter do describe '.new' do it 'should always return the given value' do limiter = NoLimiter.new [-1, 1, Float::MAX, Float::MIN, "horse"].each do |value| value.should eq(limiter.apply_limit(value)) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spnet-0.1.8 | spec/limiters/no_limiter_spec.rb |
spnet-0.1.7 | spec/limiters/no_limiter_spec.rb |
spnet-0.1.6 | spec/limiters/no_limiter_spec.rb |
spnet-0.1.5 | spec/limiters/no_limiter_spec.rb |