Sha256: 601828d5e1bcfc3856b2955bac53bc5660263d4c274f318bf60dcf3a8dd31f19

Contents?: true

Size: 270 Bytes

Versions: 9

Compression:

Stored size: 270 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
opal-0.3.27 spec/core/true/and_spec.rb
opal-0.3.26 spec/core/true/and_spec.rb
opal-0.3.25 spec/core/true/and_spec.rb
opal-0.3.22 spec/core/true/and_spec.rb
opal-0.3.21 test/core/true/and_spec.rb
opal-0.3.20 test/core/true/and_spec.rb
opal-0.3.19 test/core/true/and_spec.rb
opal-0.3.18 core/spec/core/true/and_spec.rb
opal-0.3.17 spec/core/true/and_spec.rb