Sha256: be07dcdf6da94e4fa772ca9350303efc1d5115cdea8876d6ae01622de98206d1

Contents?: true

Size: 272 Bytes

Versions: 6

Compression:

Stored size: 272 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.3.2 gems/core/spec/core/false/or_spec.rb
opal-0.3.1 gems/core/spec/core/false/or_spec.rb
opal-0.3.0 gems/core/spec/core/false/or_spec.rb
opal-0.2.2 opals/opal/opal/spec/core/false/or_spec.rb
opal-0.2.0 opals/opal/opal/spec/core/false/or_spec.rb
opal-0.1.0 opals/opal/spec/core/false/or_spec.rb