Sha256: 85d9699b10efedfa9779884b4c53c713c209ec2fc87a9f41c1ec983a25fce0b1

Contents?: true

Size: 325 Bytes

Versions: 60

Compression:

Stored size: 325 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)

describe "NilClass#|" do
  it "returns false if other is nil or false, otherwise true" do
    (nil | nil).should == false
    (nil | true).should == true
    (nil | false).should == false
    (nil | "").should == true
    (nil | mock('x')).should == true
  end
end

Version data entries

60 entries across 60 versions & 3 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/nil/or_spec.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/nil/or_spec.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/nil/or_spec.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/nil/or_spec.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/nil/or_spec.rb
opal-0.4.4 spec/rubyspec/core/nil/or_spec.rb
opal-0.4.3 spec/rubyspec/core/nil/or_spec.rb
opal-0.4.2 spec/rubyspec/core/nil/or_spec.rb