Sha256: 4990c656b2d8c21121dfe6489af33a11382a9a1e03230733a8e5af576f632acc

Contents?: true

Size: 224 Bytes

Versions: 7

Compression:

Stored size: 224 Bytes

Contents

require 'spec_helper'

describe Proc do
  before :all do
    @it=Proc.new{|x|x.is_a? Float}
  end
 it 'uses call as ===' do
  (@it===3.4).should be_true
  (@it===7).should be_false
  (@it==='hello').should be_false
 end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
amee-data-abstraction-2.3.1 spec/core-extensions/proc_spec.rb
amee-data-abstraction-2.3.0 spec/core-extensions/proc_spec.rb
amee-data-abstraction-2.2.2 spec/core-extensions/proc_spec.rb
amee-data-abstraction-2.2.1 spec/core-extensions/proc_spec.rb
amee-data-abstraction-2.2.0 spec/core-extensions/proc_spec.rb
amee-data-abstraction-1.3.1 spec/core-extensions/proc_spec.rb
amee-data-abstraction-1.3.0 spec/core-extensions/proc_spec.rb