Sha256: 26e2e4947a3b7548f0681bc5e6760e87731566c9dda44ce1ef4cf50cff1bdd98

Contents?: true

Size: 310 Bytes

Versions: 74

Compression:

Stored size: 310 Bytes

Contents

describe "Kernel#proc" do
  it "returns a Proc object" do
    proc { true }.kind_of?(Proc).should == true
  end

  it "raises an ArgumentError when no block is given" do
    lambda { proc }.should raise_error(ArgumentError)
  end
  
  it "is not a lambda" do
    proc { true }.lambda?.should == false
  end
end

Version data entries

74 entries across 74 versions & 3 rubygems

Version Path
opal-0.10.6 spec/opal/core/kernel/proc_spec.rb
opal-0.10.6.beta spec/opal/core/kernel/proc_spec.rb
opal-0.10.5 spec/opal/core/kernel/proc_spec.rb
opal-0.10.4 spec/opal/core/kernel/proc_spec.rb
opal-0.11.0.rc1 spec/opal/core/kernel/proc_spec.rb
opal-0.10.3 spec/opal/core/kernel/proc_spec.rb
opal-0.10.2 spec/opal/core/kernel/proc_spec.rb
opal-0.10.1 spec/opal/core/kernel/proc_spec.rb
opal-0.10.0 spec/opal/core/kernel/proc_spec.rb
opal-0.10.0.rc2 spec/opal/core/kernel/proc_spec.rb
opal-0.9.4 spec/opal/core/kernel/proc_spec.rb
opal-0.9.3 spec/opal/core/kernel/proc_spec.rb
opal-0.10.0.rc1 spec/opal/core/kernel/proc_spec.rb
opal-0.10.0.beta5 spec/opal/core/kernel/proc_spec.rb
opal-0.10.0.beta4 spec/opal/core/kernel/proc_spec.rb
opal-0.10.0.beta3 spec/opal/core/kernel/proc_spec.rb
opal-0.10.0.beta2 spec/opal/core/kernel/proc_spec.rb
opal-0.10.0.beta1 spec/opal/core/kernel/proc_spec.rb
opal-0.9.2 spec/opal/core/kernel/proc_spec.rb
opal-0.9.0 spec/opal/core/kernel/proc_spec.rb