Sha256: 58454eff1c90f0f9de9e8071fbc4cbc5ce6f490c52a5539f23c7a661106bf6df

Contents?: true

Size: 267 Bytes

Versions: 6

Compression:

Stored size: 267 Bytes

Contents

require File.dirname(File.dirname(__FILE__)) + '/spec_helper.rb'

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

6 entries across 6 versions & 1 rubygems

Version Path
amee-data-abstraction-2.1.1 spec/core-extensions/proc_spec.rb
amee-data-abstraction-2.1.0 spec/core-extensions/proc_spec.rb
amee-data-abstraction-1.2.0 spec/core-extensions/proc_spec.rb
amee-data-abstraction-2.0.0 spec/core-extensions/proc_spec.rb
amee-data-abstraction-1.1.0 spec/core-extensions/proc_spec.rb
amee-data-abstraction-1.0.0 spec/core-extensions/proc_spec.rb